command /chat [<text>]:
aliases: czat
permission: chat.manage
permission message: &2>> &aNie masz uprawnien!
trigger:
If arg 1 is not set
send: "&2>> &aPoprawne uzycie: &f/chat <on/off/clear>"
stop
If arg 1 is set
If arg 1 is "on":
send "&2>> &aWlaczyles chat!"
broadcast "&2>> &aChat zostal włączony przez %player%!"
set (chat.status) to true
if arg 1 is "off":
send "&4>> &cWylaczyles chat!"
broadcast "&4>> &cChat zostal wylaczony przez %player%!"
set (chat.status) to false
if arg 1 is "clear" or "c":
loop all players:
loop 100 times:
send " " to loop-player
broadcast "&9>> &bChat zostal wyczyszczony przez %player%
on chat:
If player don't have permission "chat.docken":
If (chat.status) is false
cancel event
send "&4>> &cObecnie chat jest wylaczony!"
stop