options: #Permission permission: adminchat.chat #No permission message PermMsg: &4You do not have permission to use this command! #Admin chat Prefix: &b[%player%&b] command /. []: permission: {@permission} permission message: {@PermMsg} executable by: players and console aliases: staffchat, sc, a trigger: if argument 1 is not set: if {adminchat::%player%} is not set: set {adminchat::%player%} to 1 message "&bAdmin Chat &aOn&b." if {adminchat::%player%} is 1: set {adminchat::%player%} to 0 message "&bAdmin Chat &4Off&b." if argument 1 is set: if argument 1 is "on": set {adminchat::%player%} to 1 message "&bAdmin Chat &aOn&b." if argument 1 is "off": set {adminchat::%player%} to 0 message "&bAdmin Chat &4Off&b." if argument 1 is not "on" or "off": loop all players: loop-player has the permission "{@permission}": message "{&c&lAdminChat-&6&l%player%&f} %coloured argument%" to loop-player on chat: if {adminchat::%player%} is 1: cancel event loop all players: loop-player has the permission "{@permission}": message "{&c&lAdminChat-&6&l%player%&f} %coloured message%" to loop-player else: stop on quit: if {adminchat::%player%} is 1: delete {adminchat::%player%} if {adminchat::%player%} is 0: delete {adminchat::%player%}