Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /sc:
- permission: user.chat.staff.use
- permission message: no
- trigger:
- set {staffchat::%player's uuid%} to !{staffchat::%player's uuid%}
- if {staffchat::%player's uuid%} = true:
- send "&6Staff chat enabled." to player
- else:
- send "&6Staff chat disabled." to player
- on chat:
- {staffchat::%player's uuid%} = true:
- player has permission "user.chat.staff.use":
- cancel event
- replace first "##" with "" in message
- send "&6[Staff] &e(/sc)&r %player's display name%%player's suffix% &8› &f%formatted message%" to all players where [input has permission "user.chat.staff.see"]
- message starts with "##":
- player has permission "user.chat.staff.use":
- {staffchat::%player's uuid%} = false:
- cancel event
- replace first "##" with "" in message
- send "&6[Staff] &e(##)&r %player's display name%%player's suffix% &8› &f%formatted message%" to all players where [input has permission "user.chat.staff.see"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement