Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- if {max} isn't set:
- set {max} to 10
- if {downloaded.version.2.0} isn't set:
- loop all players:
- if loop-player has permission "admin.sk":
- send "&bFakePlayerCount &b&l| &3has been updated. Now you have to use &b/fakeplayercount &3or &b/fpc&3." to loop-player
- set {downloaded.version.2.0} to true
- on server list ping:
- if {online.max} isn't set:
- set the fake max players count to {max}
- else:
- set the fake max players count to (number of all players + 1)
- command /fakeplayercount [<number>]:
- aliases: fakeplayercount, fpc
- permission: admin.sk
- trigger:
- if arg 1 isn't set:
- if {online.max} isn't set:
- open chest with 4 rows named "FakePlayerCount (Current: %{max}%)" to player
- else:
- open chest with 4 rows named "FakePlayerCount (Online +1)" to player
- wait 1 tick
- format slot 10 of player with golden nugget named "&b10 &nfake &n&r&bslots" with lore "", "&3Set the fake server slots to 10.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 10"]
- format slot 11 of player with golden nugget named "&b15 &nfake &n&r&bslots" with lore "", "&3Set the fake server slots to 15.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 15"]
- format slot 12 of player with golden nugget named "&b20 &nfake &n&r&bslots" with lore "", "&3Set the fake server slots to 20.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 20"]
- format slot 13 of player with golden nugget named "&b50 &nfake &n&r&bslots" with lore "", "&3Set the fake server slots to 50.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 50"]
- format slot 14 of player with golden nugget named "&b75 &nfake &r&n&bslots" with lore "", "&3Set the fake server slots to 75.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 75"]
- format slot 14 of player with golden nugget named "&b100 &nfake &r&n&bslots" with lore "", "&3Set the fake server slots to 100.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 100"]
- format slot 15 of player with golden nugget named "&b150 &nfake &r&n&bslots" with lore "", "&3Set the fake server slots to 150.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 150"]
- format slot 16 of player with golden nugget named "&b200 &nfake &r&n&bslots" with lore "", "&3Set the fake server slots to 200.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 200"]
- format slot 20 of player with redstone named "&bReload plugin" with lore "", "&3While downloading the newest version of ", "&3of this plugin you can reload it here.", "" and "&b... &lclick to &lreload&r&b." to close then run [make player execute command "/fpc-reload"]
- format slot 22 of player with nether star named "&bCustomize slots" with lore "", "&3Change the fake player server slots", "&3to what ever you want.", "" and "&b... click to &lchange&r&b!" to close then run [make player execute command "/playercount-custom"]
- format slot 24 of player with iron nugget named "&6Online + 1" with lore "", "&eSet the fake maximum player slot", "&eto all online players + 1.", "" and "&6... click to &lset&r&6!" to run [make player execute command "/playercount-online"]
- else if arg 1 is set:
- make player execute command "/playsound minecraft:ui.button.click player FFGames ~0 ~0 ~0 0.3 2"
- set {max} to arg 1
- clear {online.max}
- send "&bThe &lfake &r&bmaximum players has been set to %{max}%" to player
- wait 1 tick
- open chest with 4 rows named "FakePlayerCount (Current: %{max}%)" to player
- wait 1 tick
- format slot 10 of player with golden nugget named "&b10 &nfake &n&r&bslots" with lore "", "&3Set the fake server slots to 10.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 10"]
- format slot 11 of player with golden nugget named "&b15 &nfake &n&r&bslots" with lore "", "&3Set the fake server slots to 15.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 15"]
- format slot 12 of player with golden nugget named "&b20 &nfake &n&r&bslots" with lore "", "&3Set the fake server slots to 20.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 20"]
- format slot 13 of player with golden nugget named "&b50 &nfake &n&r&bslots" with lore "", "&3Set the fake server slots to 50.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 50"]
- format slot 14 of player with golden nugget named "&b75 &nfake &r&n&bslots" with lore "", "&3Set the fake server slots to 75.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 75"]
- format slot 14 of player with golden nugget named "&b100 &nfake &r&n&bslots" with lore "", "&3Set the fake server slots to 100.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 100"]
- format slot 15 of player with golden nugget named "&b150 &nfake &r&n&bslots" with lore "", "&3Set the fake server slots to 150.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 150"]
- format slot 16 of player with golden nugget named "&b200 &nfake &r&n&bslots" with lore "", "&3Set the fake server slots to 200.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 200"]
- format slot 20 of player with redstone named "&bReload plugin" with lore "", "&3While downloading the newest version of ", "&3of this plugin you can reload it here.", "" and "&b... &lclick to &lreload&r&b." to close then run [make player execute command "/fpc-reload"]
- format slot 22 of player with nether star named "&bCustomize slots" with lore "", "&3Change the fake player server slots", "&3to what ever you want.", "" and "&b... click to &lchange&r&b!" to close then run [make player execute command "/playercount-custom"]
- format slot 24 of player with iron nugget named "&6Online + 1" with lore "", "&eSet the fake maximum player slot", "&eto all online players + 1.", "" and "&6... click to &lset&r&6!" to run [make player execute command "/playercount-online"]
- command /playercount-custom:
- permission: admin.sk
- trigger:
- set {chat.max.%player%} to true
- send "&3Type a number in the chat for the maximum fake player count to start. Type &ccancel &3to stop." to player
- make player execute command "/playsound minecraft:ui.button.click player FFGames ~0 ~0 ~0 0.3 0"
- command /playercount-online:
- permission: admin.sk
- trigger:
- set {online.max} to true
- make player execute command "/playsound minecraft:ui.button.click player FFGames ~0 ~0 ~0 0.3 2"
- send "&bThe maximum fake player count to (all players online + 1)." to player
- wait 1 tick
- open chest with 4 rows named "FakePlayerCount (Online +1)" to player
- wait 1 tick
- format slot 10 of player with golden nugget named "&b10 &nfake &n&r&bslots" with lore "", "&3Set the fake server slots to 10.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 10"]
- format slot 11 of player with golden nugget named "&b15 &nfake &n&r&bslots" with lore "", "&3Set the fake server slots to 15.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 15"]
- format slot 12 of player with golden nugget named "&b20 &nfake &n&r&bslots" with lore "", "&3Set the fake server slots to 20.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 20"]
- format slot 13 of player with golden nugget named "&b50 &nfake &n&r&bslots" with lore "", "&3Set the fake server slots to 50.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 50"]
- format slot 14 of player with golden nugget named "&b75 &nfake &r&n&bslots" with lore "", "&3Set the fake server slots to 75.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 75"]
- format slot 14 of player with golden nugget named "&b100 &nfake &r&n&bslots" with lore "", "&3Set the fake server slots to 100.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 100"]
- format slot 15 of player with golden nugget named "&b150 &nfake &r&n&bslots" with lore "", "&3Set the fake server slots to 150.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 150"]
- format slot 16 of player with golden nugget named "&b200 &nfake &r&n&bslots" with lore "", "&3Set the fake server slots to 200.", "" and "&b... click to &lchange&r&b!" to run [make player execute command "/fakeplayercount 200"]
- format slot 20 of player with redstone named "&bReload plugin" with lore "", "&3While downloading the newest version of ", "&3of this plugin you can reload it here.", "" and "&b... &lclick to &lreload&r&b." to close then run [make player execute command "/fpc-reload"]
- format slot 22 of player with nether star named "&bCustomize slots" with lore "", "&3Change the fake player server slots", "&3to what ever you want.", "" and "&b... click to &lchange&r&b!" to close then run [make player execute command "/playercount-custom"]
- format slot 24 of player with iron nugget named "&6Online + 1" with lore "", "&eSet the fake maximum player slot", "&eto all online players + 1.", "" and "&6... click to &lset&r&6!" to run [make player execute command "/playercount-online"]
- command /fpc-reload:
- permission: admin.sk
- trigger:
- send "&3Reloading the plugin &cFakePlayerCount&3 with file ending &c.sk&3, this will take a few moments..." to player
- wait 3 ticks
- make player execute command "/sk reload Maxplayercount"
- stop
- on chat:
- if {chat.max.%player%} is true:
- cancel event
- if message is not "cancel":
- set {max} to message
- wait 1 tick
- send "&bThe &lfake &r&bmaximum players has been set to %{max}%" to player
- clear {chat.max.%player%}
- else:
- clear {chat.max.%player%}
- send "&f%message%" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement