Hi. So I have this code:
So, when there are 0 players on prisons, it works fine, but when there is a player on, it says <none>. Please help me! Thanks
code_language.skript:
if size of all bungeecord players on server "Prisons" is 0:
format slot 15 of player with an 101 named "&8» &7&lPrisons &8«" with lore "&8&m-|------------------------|-&r ||&8» &7Escape the Prison you||&8» &7have been placed||&8» &7in by mining for money||&8» &7which can be used||&8» &7to escape into freedom!||&8&m-|------------------------|-|| &8* &7Online: &a0" to close then run "Prisons %player%"
else:
format slot 15 of player with an 101 named "&8» &7&lPrisons &8«" with lore "&8&m-|------------------------|-&r ||&8» &7Escape the Prison you||&8» &7have been placed||&8» &7in by mining for money||&8» &7which can be used||&8» &7to escape into freedom!||&8&m-|------------------------|-|| &8* &7Online: &a%{_numPrisons}%" to close then run "Prisons %player%"
code_language.skript:
every second in "world":
set {_numPrisons} to number of all bungeecord players on server "Prisons"
So, when there are 0 players on prisons, it works fine, but when there is a player on, it says <none>. Please help me! Thanks