command /sc [<text>]:
aliases: staffchat
permission: staffchat.use
permission message: &4You are not a staffer to use this command
trigger:
if arg 1 is not set:
send "&8&m-------------------"
send "&cCorrect command: /sc on &4&lor /sc off"
send "&8&m-------------------"
else:
if arg 1 is set on:
set {staffchat.%player%} to true
send "&8&m-------------------"
send "&8[ ] &9Your staffchat is now &aEnabled !"
send "&8&m-------------------"
if arg 1 is set off:
set {staffchat.%player%} to false
send "&8&m-------------------"
send "&8[ ] &9Your staffchat is now &4Disabled !"
send "&8&m-------------------"
on chat:
if {staffchat.%player%} is true:
cancel event
loop all players
if {staffchat.%loop-player%} is true:
send "&8 [ &4Staff &8] &4%player's nickname%>> &9%message%" to loop-player
[doublepost=1549546902,1549546862][/doublepost]sorry if i wrote somthing that i haven't to write but im new in the site so yeah
aliases: staffchat
permission: staffchat.use
permission message: &4You are not a staffer to use this command
trigger:
if arg 1 is not set:
send "&8&m-------------------"
send "&cCorrect command: /sc on &4&lor /sc off"
send "&8&m-------------------"
else:
if arg 1 is set on:
set {staffchat.%player%} to true
send "&8&m-------------------"
send "&8[ ] &9Your staffchat is now &aEnabled !"
send "&8&m-------------------"
if arg 1 is set off:
set {staffchat.%player%} to false
send "&8&m-------------------"
send "&8[ ] &9Your staffchat is now &4Disabled !"
send "&8&m-------------------"
on chat:
if {staffchat.%player%} is true:
cancel event
loop all players
if {staffchat.%loop-player%} is true:
send "&8 [ &4Staff &8] &4%player's nickname%>> &9%message%" to loop-player
[doublepost=1549546902,1549546862][/doublepost]sorry if i wrote somthing that i haven't to write but im new in the site so yeah