Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /chatlock:
- permission: mountain.chatlock
- trigger:
- open chest with 1 rows named "&c&lChatLock" to player
- {chatlock} is set:
- format slot 4 of player with red wool named "&7ChatLock" with lore "&8Chat is currently &7locked&8!" to run [invoke "lock" from player]
- else:
- format slot 4 of player with green wool named "&7ChatLock" with lore "&8Chat is currently &7unl ocked&8!." to run [invoke "unlock" from player]
- on chat:
- {chatlock} is set:
- player is not op
- cancel event
- send "&8Chat has been &7locked&8!"
- sub "lock":
- set {chatlock} to 1
- send "&8Chat is now &7locked&8!" to parameter 1
- sub "unlock":
- delete {chatlock}
- send "&8Chat is now &7unlocked&8!" to parameter 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement