options: serwer: &2&lKapucynk&f&lMC.PL wlpowod: &f&lWkrotce edycja! blad: &cPoprawne uzycie: /whitelist on: &c&l Whitelista zostala wlaczona! off: &c&l Whitelista zostala wylaczona! variables: {whitelist} = off {whitelist.join.%player%} = false on command: if {whitelist} is on: if player has permission "op": stop else: send title "{@serwer}" with subtitle "&cNie mozesz uzywac komend!" to player cancel event every 3.5 seconds: loop all players: if {whitelist} is on: if {whitelist.join.%loop-player%} is false: send title "{@serwer}" with subtitle "{@wlpowod}" to loop-player teleport loop-player to {whitelist.spawn} on any move: if {whitelist} is on: if {whitelist.join.%player%} is false: cancel event command /whitelistsetspawn: permission: op trigger: set {whitelist.spawn} to location of player send title "{@serwer}" with subtitle "&c&lUstawiono miejsce spawnu whitelisty!" command /whitelistspawn: permission: op trigger: teleport player to {whitelist.spawn} send title "{@serwer}" with subtitle "&cPrzeteleportowano do spawnu whitelisty gdy jest wlaczona!" #------ DOMYÚLNA KOMENDA /whitelist ------ command /whitelist [] []: permission: op trigger: #------ ADD ------ if arg 1 is "add": if arg 2 is set: set {whitelist.join.%player%} to true send title "{@serwer}" with subtitle "&cPomyslnie dodano gracza %arg 2% do whitelisty" to player else: send title "{@serwer}" with subtitle "{@blad}" to player #------ ADD ------ #------ REMOVE ------ if arg 1 is "remove": if arg 2 is set: set {whitelist.join.%arg 2%} to false send title "{@serwer}" with subtitle "&cPomyslnie usunieto gracza %arg 2% z whitelisty" to player else: send title "{@serwer}" with subtitle "{@blad}" to player #------ REMOVE ------ #------ ON ------ if arg 1 is "on": set {whitelist} to on send title "{@serwer}" with subtitle "{@on}" #------ ON ------ #------ OFF ------ if arg 1 is "off": loop all players: set {whitelist} to off if {whitelist.join.%loop-player%} is true: stop else: send title "{@serwer}" with subtitle "{@off}" kick all players due to "&c&lWhitelista zostala wylaczona! Wejdz ponownie!" #------ OFF ------ #------ STATUS ------ if arg 1 is "status": if {whitelist} is on: send title "{@serwer}" with subtitle "&c&lStatus whitelisty: &a&l&nON" to player else: send title "{@serwer}" with subtitle "&c&lStatus whitelisty: &c&l&nOFF" to player #------ STATUS ------ #------ INFO ------ if arg 1 is "info": if {whitelist.join.%arg 2%} is true: send title "{@serwer}" with subtitle "&c&lGracz %arg 2% znajduje sie na whiteliscie" to player for 3 seconds else: send title "{@serwer}" with subtitle "&c&lGracz %arg 2% nie znajduje sie na whiteliscie" to player for 3 seconds #------ INFO ------ #------ ARG IS NOT ------ if arg 1 is not "add" or "remove" or "on" or "off" or "status" or "info": send "{@serwer}" to player send " " to player send "{@blad}" to player send " " to player send "{@serwer}" to player #------ KOMENDA /wl ------ command /wl [] []: permission: op trigger: #------ ADD ------ if arg 1 is "add": if arg 2 is set: set {whitelist.join.%arg 2%} to true send title "{@serwer}" with subtitle "&cPomyslnie dodano gracza %arg 2% do whitelisty" to player else: send title "{@serwer}" with subtitle "{@blad}" to player #------ REMOVE ------ if arg 1 is "remove": if arg 2 is set: set {whitelist.join.%arg 2%} to false send title "{@serwer}" with subtitle "&cPomyslnie usunieto gracza %arg 2% z whitelisty" to player else: send title "{@serwer}" with subtitle "{@blad}" to player #------ ON ------ if arg 1 is "on": set {whitelist} to on send title "{@serwer}" with subtitle "{@on}" #------ OFF ------ if arg 1 is "off": loop all players: set {whitelist} to off if {whitelist.join.%loop-player%} is true: stop else: send title "{@serwer}" with subtitle "{@off}" kick all players due to "&c&lWhitelista zostala wylaczona! Wejdz ponownie!" #------ ARG IS NOT ------ if arg 1 is not "add" or "remove" or "on" or "off": send title "{@serwer}" with subtitle "{@blad}" to player