command /whitelist [] []: trigger: if player has permission "whitelist.use": if arg 2 is not set: send "&cPoprawne uzycie: &7 /whitelist " if arg 1 is "on": if arg 2 is set: if {wh.status} is set: send "&cWhitelista jest juz wlaczona!" else: set {wh.reason} to coloured arg 2 broadcast "&7%player%: &cWlaczono Whiteliste z powodem: %coloured arg 2%" set {wh.status} to true if arg 1 is "off": clear {wh.status} clear {wh.reason} broadcast "&7%player%: &cWylaczono Whiteliste!" if arg 1 is "add": if arg 2 is set: if {wh.player.%arg 2%} is true: send "&cGracz jest juz dodany!" else: set {wh.player.%arg 2%} to true broadcast "&7%player%: &cDodano &7%arg 2% &cdo whitelisty!" if arg 1 is "remove": if arg 2 is set: if {wh.player.%arg 2%} is true: clear {wh.player.%arg 2%} broadcast "&7%player%: &cUsunieto &7%arg 2% &cz whitelisty!" else: send "&cGracza nie ma na whiteliscie!" on connect: if {wh.status} is true: if {wh.player.%player%} is not set: kick player due to "&cRozlaczono: %nl%&cNie Jestes Na Whiteliscie! %nl% %nl% &cPowod: &7%{wh.reason}%"