Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2021
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. options:
  2. p: &8&l[&c&lSC&8&l] # prefix
  3. no-perm: &cSorry! You do not have permission for that command! # no permissions message
  4.  
  5. command /staffchat [<text>]:
  6. aliases: sc
  7. permission: staffchat.use
  8. permission message: {@no-perm}
  9. trigger:
  10. if arg-1 is set:
  11. send "{@p} &8&l• %player's prefix%&7%player% &8&l» &a%arg-1%" to players where [input has permission "staffchat.use"]
  12. if arg-1 is not set:
  13. if {staffchat::%player's uuid%} is not set:
  14. set {staffchat::%player's uuid%} to true
  15. send "&8&l[&c&l!&8&l] &aYou have enabled staffchat."
  16. else:
  17. delete {staffchat::%player's uuid%}
  18. send "&8&l[&c&l!&8&l] &cYou have disabled staffchat."
  19.  
  20. on chat:
  21. if {staffchat::%player's uuid%} is set:
  22. cancel event
  23. send "{@p} &8&l• %player's prefix%&7%player% &8&l» &a%message%" to players where [input has permission "staffchat.use"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement