Vikkstar0123

idk staff chat

Sep 30th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. command /staffchat:
  2. aliases: sc
  3. trigger:
  4. if player has permission "server.staff":
  5. if {staffchat.%player's uuid%} is set:
  6. delete {staffchat.%player's uuid%}
  7. message "&4Disabled&7 Staff Chat mode!."
  8. else:
  9. set {staffchat.%player's uuid%} to true
  10. message "&aEnabled &7Staff Chat mode!"
  11.  
  12. on chat:
  13. if {staffchat.%player's uuid%} is set:
  14. loop all players:
  15. if loop-player has permission "server.staff":
  16. message "&8(&4Staff Chat&8) &c%player%&8: &7&o%message%" to loop-player
  17. cancel event
  18. else:
  19. stop trigger
Add Comment
Please, Sign In to add comment