Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- sc: &6[&l&bStaff&4Chat&r&6]&f
- command staffchat:
- aliases: sc
- permission: staffchat.use
- permission message: &cYou do not have permission for that!
- trigger:
- open chest with 1 row named "&l&4Staff&2Chat" to player
- format slot 0 of player with green dye named "&aJoin!" with lore "&6Click to &ajoin!" to close then run [make player execute command "schat join"]
- format slot 1 of player with rose red named "&cLeave!" with lore "&6Click to &cLeave!" to close then run [make player execute command "schat leave"]
- format slot 8 of player with 160:14 named "&4Close!" with lore "&7Click to Close!" to close
- command /schat <text>:
- permission: staffchat.use
- permission message: &cYou do not have permission for that!
- trigger:
- if arg-1 is "join":
- set {staffchat.%player%} to true
- message "{@sc} &6You have &aJoined &6the &l&4Staff&2Chat"
- if arg-1 is "leave":
- set {staffchat.%player%} to false
- message "{@sc} &6You have &cLefted &6the &l&4Staff&2Chat"
- on chat:
- if {staffchat.%player%} is true:
- cancel event
- loop all players:
- if loop-player have permission "staffchat.see":
- send "{@sc} %player%> %message%" to loop-player
Add Comment
Please, Sign In to add comment