Advertisement
Rylens

Rylen | Staffchat skript

Sep 16th, 2020
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. command /sc:
  2. permission: user.chat.staff.use
  3. permission message: no
  4. trigger:
  5. set {staffchat::%player's uuid%} to !{staffchat::%player's uuid%}
  6. if {staffchat::%player's uuid%} = true:
  7. send "&6Staff chat enabled." to player
  8. else:
  9. send "&6Staff chat disabled." to player
  10. on chat:
  11. {staffchat::%player's uuid%} = true:
  12. player has permission "user.chat.staff.use":
  13. cancel event
  14. replace first "##" with "" in message
  15. 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"]
  16. message starts with "##":
  17. player has permission "user.chat.staff.use":
  18. {staffchat::%player's uuid%} = false:
  19. cancel event
  20. replace first "##" with "" in message
  21. 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