VentureChat
VentureChat copied to clipboard
Add new permission and bypass for message toggle
This PR adds an extra permissions check on the sender. If the sender has the permission venturechat.messagetoggle.bypass , then they'll be able to bypass the message toggle feature if the receiver has it enabled and allow them to message the specified player.
The code you wrote does not match the feature you described.
The permissions check should be applied as an additional condition to the existing if statement that checks messageToggle status.
You'd also need to update the BungeeCord pluginMessage payload with the senders bypass flag to allow reading it on the receiving end in PluginMessageController.