Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /mutechat:
- aliases: mc
- trigger:
- if player does not have permission "helper.mc":
- send title "&4&lERROR!" with subtitle "&7Insufficient Permissions!" to player
- else if player has permission "helper.mc":
- if {mutechat} is not set:
- set {mutechat} to true
- loop all players:
- send title "&4&lATTENTION!" with subtitle "&cThe chat is now muted." to loop-player
- else if {mutechat} is true:
- delete {mutechat}
- loop all players:
- send title "&4&lATTENTION!" with subtitle "&cThe chat is now unmuted." to loop-player
- on chat:
- if {mutechat} is true:
- if {staffchat.%player%} is true:
- loop all players:
- if loop-player has permission "helper.sc":
- cancel event
- send "&6&lSTAFF &e%player% &8» &e%message%" to loop-player
- else if {staffchat.%player%} is not set:
- if player does not have permission "helper.mc.bypass":
- cancel event
- send "&4&lERROR! &cThe chat is currently muted!" to player
- else:
- cancel event
- broadcast "%colored player's prefix% &d[%{level::%player's uuid%}%&d] &7%player% &8» &7%message%"
- else if {mutechat} is not set:
- if {staffchat.%player%} is true:
- loop all players:
- if loop-player has permission "helper.sc":
- cancel event
- send "&6&lSTAFF &e%player% &8» &e%message%" to loop-player
- else:
- cancel event
- broadcast "%colored player's prefix% &d[%{level::%player's uuid%}%&d] &7%player% &8» &7%message%"
- command /clearchat:
- aliases: cc
- trigger:
- if player does not have permission "helper.cc":
- send title "&4&lERROR!" with subtitle "&7Insufficient Permissions!" to player
- else if player has permission "helper.cc":
- loop 101 times:
- broadcast " "
- loop all players:
- send title "&4&lATTENTION!" with subtitle "&cThe chat has been cleared by %player%&c!" to loop-player
- command /broadcast [<text>]:
- trigger:
- if player does not have permission "mod.bc":
- send title "&4&lERROR!" with subtitle "&7Insufficient Permissions!" to player
- else:
- if arg-1 is set:
- loop all players:
- send title "&9&lBROADCAST" with subtitle "&b%arg-1%" to loop-player
- else:
- send title "&4&lINCORRECT USAGE!" with subtitle "&7/broadcast <message>!" to player
- command /staffchat:
- aliases: sc
- trigger:
- if player does not have permission "helper.sc":
- send title "&4&lERROR!" with subtitle "&7Insufficient Permissions!" to player
- else if player has permission "helper.sc":
- if {staffchat.%player%} is not set:
- set {staffchat.%player%} to true
- send title "&a&lSUCCESS!" with subtitle "&7Staffchat is now enabled!" to player
- else if {staffchat.%player%} is true:
- delete {staffchat.%player%}
- send title "&a&lSUCCESS!" with subtitle "&7Staffchat is now disabled!" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement