Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. command /mutechat:
  2. aliases: mc
  3. trigger:
  4. if player does not have permission "helper.mc":
  5. send title "&4&lERROR!" with subtitle "&7Insufficient Permissions!" to player
  6. else if player has permission "helper.mc":
  7. if {mutechat} is not set:
  8. set {mutechat} to true
  9. loop all players:
  10. send title "&4&lATTENTION!" with subtitle "&cThe chat is now muted." to loop-player
  11. else if {mutechat} is true:
  12. delete {mutechat}
  13. loop all players:
  14. send title "&4&lATTENTION!" with subtitle "&cThe chat is now unmuted." to loop-player
  15.  
  16. on chat:
  17. if {mutechat} is true:
  18. if {staffchat.%player%} is true:
  19. loop all players:
  20. if loop-player has permission "helper.sc":
  21. cancel event
  22. send "&6&lSTAFF &e%player% &8» &e%message%" to loop-player
  23. else if {staffchat.%player%} is not set:
  24. if player does not have permission "helper.mc.bypass":
  25. cancel event
  26. send "&4&lERROR! &cThe chat is currently muted!" to player
  27. else:
  28. cancel event
  29. broadcast "%colored player's prefix% &d[%{level::%player's uuid%}%&d] &7%player% &8» &7%message%"
  30. else if {mutechat} is not set:
  31. if {staffchat.%player%} is true:
  32. loop all players:
  33. if loop-player has permission "helper.sc":
  34. cancel event
  35. send "&6&lSTAFF &e%player% &8» &e%message%" to loop-player
  36. else:
  37. cancel event
  38. broadcast "%colored player's prefix% &d[%{level::%player's uuid%}%&d] &7%player% &8» &7%message%"
  39.  
  40. command /clearchat:
  41. aliases: cc
  42. trigger:
  43. if player does not have permission "helper.cc":
  44. send title "&4&lERROR!" with subtitle "&7Insufficient Permissions!" to player
  45. else if player has permission "helper.cc":
  46. loop 101 times:
  47. broadcast " "
  48. loop all players:
  49. send title "&4&lATTENTION!" with subtitle "&cThe chat has been cleared by %player%&c!" to loop-player
  50.  
  51. command /broadcast [<text>]:
  52. trigger:
  53. if player does not have permission "mod.bc":
  54. send title "&4&lERROR!" with subtitle "&7Insufficient Permissions!" to player
  55. else:
  56. if arg-1 is set:
  57. loop all players:
  58. send title "&9&lBROADCAST" with subtitle "&b%arg-1%" to loop-player
  59. else:
  60. send title "&4&lINCORRECT USAGE!" with subtitle "&7/broadcast <message>!" to player
  61.  
  62. command /staffchat:
  63. aliases: sc
  64. trigger:
  65. if player does not have permission "helper.sc":
  66. send title "&4&lERROR!" with subtitle "&7Insufficient Permissions!" to player
  67. else if player has permission "helper.sc":
  68. if {staffchat.%player%} is not set:
  69. set {staffchat.%player%} to true
  70. send title "&a&lSUCCESS!" with subtitle "&7Staffchat is now enabled!" to player
  71. else if {staffchat.%player%} is true:
  72. delete {staffchat.%player%}
  73. send title "&a&lSUCCESS!" with subtitle "&7Staffchat is now disabled!" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement