Advertisement
Tarna256

Skript Staff Chat

Jul 8th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. options:
  2. p: sk.staffchat # permission to use staffchat
  3. pm: &cYou do not have permission to use this! # permission message
  4. usage: &c/staffchat # command usage. note, /staffchat will not work on minehut so you have to use /sc
  5. aliases: /sc # command aliases
  6. format: &7[&3SC&7] &r%player's displayname% &8» &f%message% # chat format for staffchat
  7.  
  8. command /staffchat:
  9. aliases: {@aliases}
  10. usage: {@usage}
  11. permission: {@p}
  12. permission message: {@pm}
  13. trigger:
  14. if {staffchat::*} contains player:
  15. remove player from {staffchat::*}
  16. send "&4StaffChat Enabled"
  17. else:
  18. add player to {staffchat::*}
  19. send "&aStaffChat Enabled"
  20.  
  21. on chat:
  22. if {staffchat::*} contains player:
  23. cancel event
  24. send "{@format}" to all players where [input has permission "{@p}"]
  25. else:
  26. if message starts with "## ":
  27. if player has permission "sk.staffchat":
  28. cancel event
  29. send "{@format}" to all players where [input has permission "{@p}"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement