Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # CONFIG #
- options:
- # STAFFCHAT FORMAT #
- scprefix: &7[&dSTAFF&5CHAT&7] &r
- #sc = staffchat
- scformat: %player's display name%&7: &b
- #Format that the staff will see when someone will send a message in staffchat.
- #Player's display name supports essentials prefixes. If you dont want any prefixes and clean name, do %player%
- permmsg: &cYou are not allowed to do this!
- # PERMISSIONS #
- mutescp: staffchat.mute
- # These are the permissions for the commands. EZ to setup :)
- sctalk: staffchat.talk
- scread: staffchat.see
- bypass_scmute: staffchat.mutebypass
- # MESSAGES #
- scsilence: &cThe staffchat has been silenced by %player%
- scunsilence: &aThe staffchat has been un-silenced by %player%
- scmuted: &cStaff chat is currently muted! Try again later.
- chatprefix: ##
- # If you get this error:
- command /mutestaffchat:
- permission: {@mutescp}
- permission message: {@permmsg}
- aliases: /msc, /mutesc
- trigger:
- if {staffc.global} is false:
- set {staffc.global} to true
- loop all players:
- loop-player has permission "{@scread}"
- send "{@scprefix}{@scsilence}" to loop-player
- else:
- set {staffc.global} to false
- loop all players:
- loop-player has permission "{@scread}"
- send "{@scprefix}{@scunsilence}" to loop-player
- on chat:
- if {staffc.global} is true:
- set {mlength} to length of message
- first character of message = "##"
- length of message > 1
- player has the permission "{@sctalk}"
- cancel event
- loop all players:
- loop-player has permission "{@sctalk}"
- send "{@scprefix}{@scformat}%subtext of message from characters 2 to {mlength}%" to loop-player
- stop
- if {staffc.global} is true:
- first character of message = "##"
- cancel event
- send "{@scmuted}"
- stop
- else if {staffc.global} is false:
- set {mlength} to length of message
- first character of message = "##"
- length of message > 1
- player has the permission "{@scread}"
- cancel event
- loop all players:
- loop-player has permission "{@scread}"
- send "{@scprefix}{@scformat}%subtext of message from characters 2 to {mlength}%" to loop-player
- command /staffchat [<text>]:
- permission: {@scread}
- permission message: {@permmsg}
- trigger:
- if arg-1 is not set:
- send "&cCorrect usage: /staffchat <message>"
- else if arg-1 is set:
- loop all players:
- loop-player has permission "{@scread}"
- send "{@scprefix}{@scformat}%arg-1%" to loop-player
- command /staffchattoggle:
- permission: {@sctalk}
- permission message: {@permmsg}
- aliases: /sctoggle
- trigger:
- if {sc.%player%} is false:
- set {sc.%player%} to true
- send "&aYou've toggled staffchat on!"
- else if {sc.%player%} is true:
- set {sc.%player%} to false
- send "&cYou've toggled staffchat off!"
- on chat:
- if {sc.%player%} is true:
- loop all players:
- loop-player has permission "{@scread}"
- cancel event
- send "{@scprefix}{@scformat}%message%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement