Advertisement
syuusyuu_ll

Untitled

Dec 11th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.87 KB | None | 0 0
  1.  
  2.  
  3.  
  4. on load:
  5. if {max} isn't set:
  6. set {max} to 10
  7. if {downloaded.version.2.0} isn't set:
  8. loop all players:
  9. if loop-player has permission "admin.sk":
  10. send "&bFakePlayerCount &b&l| &3has been updated. Now you have to use &b/fakeplayercount &3or &b/fpc&3." to loop-player
  11. set {downloaded.version.2.0} to true
  12.  
  13.  
  14. on server list ping:
  15. if {online.max} isn't set:
  16. set the fake max players count to {max}
  17. else:
  18. set the fake max players count to (number of all players + 1)
  19.  
  20.  
  21.  
  22. command /fakeplayercount [<number>]:
  23. aliases: fakeplayercount, fpc
  24. permission: admin.sk
  25. trigger:
  26. if arg 1 isn't set:
  27. if {online.max} isn't set:
  28. open chest with 4 rows named "FakePlayerCount (Current: %{max}%)" to player
  29. else:
  30. open chest with 4 rows named "FakePlayerCount (Online +1)" to player
  31. wait 1 tick
  32. 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"]
  33. 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"]
  34. 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"]
  35. 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"]
  36. 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"]
  37. 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"]
  38. 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"]
  39. 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"]
  40. 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"]
  41. 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"]
  42. 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"]
  43. else if arg 1 is set:
  44. make player execute command "/playsound minecraft:ui.button.click player FFGames ~0 ~0 ~0 0.3 2"
  45. set {max} to arg 1
  46. clear {online.max}
  47. send "&bThe &lfake &r&bmaximum players has been set to %{max}%" to player
  48. wait 1 tick
  49. open chest with 4 rows named "FakePlayerCount (Current: %{max}%)" to player
  50. wait 1 tick
  51. 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"]
  52. 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"]
  53. 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"]
  54. 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"]
  55. 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"]
  56. 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"]
  57. 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"]
  58. 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"]
  59. 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"]
  60. 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"]
  61. 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"]
  62.  
  63.  
  64. command /playercount-custom:
  65. permission: admin.sk
  66. trigger:
  67. set {chat.max.%player%} to true
  68. send "&3Type a number in the chat for the maximum fake player count to start. Type &ccancel &3to stop." to player
  69. make player execute command "/playsound minecraft:ui.button.click player FFGames ~0 ~0 ~0 0.3 0"
  70.  
  71. command /playercount-online:
  72. permission: admin.sk
  73. trigger:
  74. set {online.max} to true
  75. make player execute command "/playsound minecraft:ui.button.click player FFGames ~0 ~0 ~0 0.3 2"
  76. send "&bThe maximum fake player count to (all players online + 1)." to player
  77. wait 1 tick
  78. open chest with 4 rows named "FakePlayerCount (Online +1)" to player
  79. wait 1 tick
  80. 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"]
  81. 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"]
  82. 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"]
  83. 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"]
  84. 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"]
  85. 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"]
  86. 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"]
  87. 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"]
  88. 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"]
  89. 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"]
  90. 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"]
  91.  
  92. command /fpc-reload:
  93. permission: admin.sk
  94. trigger:
  95. send "&3Reloading the plugin &cFakePlayerCount&3 with file ending &c.sk&3, this will take a few moments..." to player
  96. wait 3 ticks
  97. make player execute command "/sk reload Maxplayercount"
  98. stop
  99. on chat:
  100. if {chat.max.%player%} is true:
  101. cancel event
  102. if message is not "cancel":
  103. set {max} to message
  104. wait 1 tick
  105. send "&bThe &lfake &r&bmaximum players has been set to %{max}%" to player
  106. clear {chat.max.%player%}
  107. else:
  108. clear {chat.max.%player%}
  109. send "&f%message%" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement