A simple PocketMine-MP 5.0 plugin that allows you to lock and unlock the chat
/chatlock [on|off]
Executing /chatlock will commute the state of the chat lock
chatlock.use-> To use chatlock commandchatlock.bypass-> To bypass the chatlock
config.yml file:
---
# Command description
command-description: "Allow you to lock or unlock the chat"
# Permission message
permission-message: "§cYou don't have the permission to use that command !"
# Messages sent to player when locking/unlocking the chat
chatlock-on: "You locked the chat"
chatlock-off: "You unlocked the chat"
chatlock-already-on: "Chat is already locked"
chatlock-already-off: "Chat is already unlocked"
# Broadcast message when chat locked/unlocked
# {player} => name of player who locked/unlocked the chat
broadcast-message-locked: "§c{player} §flocked the chat !"
broadcast-message-unlocked: "§c{player} §funlocked the chat !"
# Messages sent to the player trying to send a message when the chat is locked
chat-is-locked: "§cThe chat is currently locked"
...