variables: {whitelist} = false {whitelist.admin.%player%} = 0 command /whitelist [] [] []: permission: whitelist.Asthon permission message: &cChciałabyś usage: Użyj /whitelist trigger: if arg 1 is "add": if arg 3 is set: if {whitelist.admin.%arg-3%} is 0: send "&7[&a&lWHITELIST&7] &eDodałes gracza &c%arg-3% &edo whitelisty." set {whitelist.admin.%arg-3%} to 1 add arg-3 to {whitelist::*} else: send "&7[&a&lWHITELIST&7] &eGracz &c%arg-3% &ejest już na whiteliscie." else: send "&7[&a&lWHITELIST&7] &ePoprawne użycie &c/whitelist add player " if arg 1 is "remove": if arg 3 is set: if {whitelist.admin.%arg-3%} is 1: send "&7[&a&lWHITELIST&7] &eUsunąłeś gracza &c%arg-3% &ez whitelisty." set {whitelist.admin.%arg-3%} to 0 remove arg-3 from {whitelist::*} else: send "&7[&a&lWHITELIST&7] &eGracz &c%arg-3% &enie jest na whiteliscie." if {whitelist.admin.%arg-3%} is 0 or 2: send "&7[&a&lWHITELIST&7] &eUsunąłeś gracza &c%arg-3% &ez whitelisty." set {whitelist.admin.%arg-3%} to 0 remove arg-3 from {whitelist::*} else: send "&7[&a&lWHITELIST&7] &ePoprawne użycie &c/whitelist remove player " if arg 1 is "on": if {whitelist} is false: set {whitelist} to true send "&7[&a&lWHITELIST&7] &ePoprawnie odpaliłes whiteliste!" else: send "&7[&a&lWHITELIST&7] &eWhitelista juz jest włączona!" if arg 1 is "off": if {whitelist} is true: set {whitelist} to false send "&7[&a&lWHITELIST&7] &ePoprawnie wyłączyłeś whiteliste!" else: send "&7[&a&lWHITELIST&7] &eWhitelista nie jest włączona!" if arg 1 is "message": if arg 2 is set: set {whitelist.kick} to coloured arg-2 send "&7[&a&lWHITELIST&7] &ePoprawnie użyłeś tej komendy! Twoja wiadomość: %{whitelist.kick}%" else: send "&7[&a&lWHITELIST&7] &ePoprawne użycie &c/whitelist message " send "&7[&a&lWHITELIST&7] &eAktualna wiadomosc: &c%{whitelist.kick}%" if arg 1 is "list": send "&7[&a&lWHITELIST&7] &eLista graczy dodanych do whitelist: &f%{whitelist::*}%" if arg 1 is not "off" or "on" or "add" or "remove" or "message" or "list": send "&7[&a&lWHITELIST&7] &ePoprawne użycie &c/whitelist " every 1 seconds: loop all players: if {whitelist} is true: if {whitelist.admin.%loop-player%} is 0: kick loop-player due to "&7[&a&lWHITELIST&7] &eWhitelista została włączona! Wbij ponownie później!"