#AUTOR K3G #MOGA WYSTAPIC PROBLEMY Z TABOWANIEM variables: {blok.komendy} = true options: wiadomosc1: &a>> &fBrak permissi do wykonania komendy! wiadomosc2: &a>> &fUzytkownik &o%player% &4wylaczyl &fzablokowane komendy! wiadomosc3: &a>> &fUzytkownik &o%player% &awlaczyl &fzablokowane komendy! wiadomosc5: &a>> &fKomenda jest juz wylaczona! wiadomosc4: &a>> &fKomenda jest juz wlaczona! on command: if player has permission "admin.k3blok": stop else: if {blok.komendy} is true: if command is "pl" or "plugins" or "bukkit:pl" or "bukkit:plugins" or "bukkit:?" or "bukkit:? " or "?" or "me": # dodatkowo mozna zablokowac komende /help cancel event send "{@wiadomosc1}" command /blokada []: permission: blokada.admin permission message: &a>> &fBrak permissi do wykonania komendy! trigger: if arg 1 is set: if arg 1 is "on": if {blok.komendy} = false: set {blok.komendy} to true send "{@wiadomosc2}" to all ops stop else: send "{@wiadomosc4}" to player stop if arg-1 is "off": if {blok.komendy} = true: set {blok.komendy} to false send "{@wiadomosc3}" to all ops stop else: send "{@wiadomosc5}" to player stop else: send "Prawidlowe uzycie &a&o/blokada [on/off]" to player