options: komenda: whitelist permisja: whitelist.manager permisja_wiadomosc: &cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error. command /{@komenda} [] []: trigger: if player has permissions "@{permisja}": arg 1 is not set: send "&cBledne uzycie, sproboj tak:" send "&c/whitelist (dodaj|usun) " send "&c/whitelist (off|list|reload)" send "&c/whitelist on " arg 1 is "dodaj" or "add": arg 2 is set: clear {wl::%arg 2%} remove argument 2 from {wl_lista::*} set {wl::%arg 2%} to true add argument 2 to {wl_lista::*} send "&7&o[%executor%: Added %argument 2% to white-list]" to all ops send "Dodano %arg 2% do white-list" else: send "&c/whitelist dodaj " arg 1 is "usun" or "remove": arg 2 is set: clear {wl::%arg 2%} remove argument 2 from {wl_lista::*} send "&7" send "&7&o[%executor%: Removed %arg 2% from white-list]" else: send "&c/whitelist usun " arg 1 is "on": set {whitelist} to true send "&7&o[%executor%: Turned on white-listing]" arg 2 is set: set {wl_reason} to coloured argument 2 arg 2 is not set: set {wl_reason} to "You are not whitelisted on this server!" send "&fWlaczyles whitelist, powod: %{wl_reason}%" arg 1 is "off": set {whitelist} to false send "&7&o[%executor%: Turned off white-listing]" send "&fWylaczyles whitelist" arg 1 is "list" or "lista": if {wl_lista::*} is not set: set {wl_lista::*} to "" send "White-listed players: %{wl_lista::*}%" if {wl_lista::*} is not set: clear {wl_lista::*} clear {wl::*} arg 1 is "reload" or "przeladuj": execute console command "pex user %player% add skript.*" wait a tick execute player command "sk reload %script%" wait a tick execute console command "pex user %player% remove skript.*" send "&7&o[%executor%: Reloaded white-list from file]" arg 1 is not "reload" or "przeladuj" or "list" or "lista" or "off" or "on" or "usun" or "remove" or "add" or "dodaj": send "&cBledny argument" wait a tick execute player command "whitelist" if player doesn't have permissions "@{permisja}": send "{@permisja_wiadomosc}" on command "{@komenda}?": cancel event execute player command "5235kj23kl5j23lk5j2l3kj5" on connect: if {whitelist} is true: if {wl::%player%} is true: stop else: kick player due to "%{wl_reason}%"