Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- p: sk.staffchat # permission to use staffchat
- pm: &cYou do not have permission to use this! # permission message
- usage: &c/staffchat # command usage. note, /staffchat will not work on minehut so you have to use /sc
- aliases: /sc # command aliases
- format: &7[&3SC&7] &r%player's displayname% &8» &f%message% # chat format for staffchat
- command /staffchat:
- aliases: {@aliases}
- usage: {@usage}
- permission: {@p}
- permission message: {@pm}
- trigger:
- if {staffchat::*} contains player:
- remove player from {staffchat::*}
- send "&4StaffChat Enabled"
- else:
- add player to {staffchat::*}
- send "&aStaffChat Enabled"
- on chat:
- if {staffchat::*} contains player:
- cancel event
- send "{@format}" to all players where [input has permission "{@p}"]
- else:
- if message starts with "## ":
- if player has permission "sk.staffchat":
- cancel event
- send "{@format}" to all players where [input has permission "{@p}"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement