VentureChat icon indicating copy to clipboard operation
VentureChat copied to clipboard

Add new permission and bypass for message toggle

Open AjMaacc opened this issue 3 years ago • 1 comments

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.

AjMaacc avatar May 20 '22 03:05 AjMaacc

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.

Aust1n46 avatar May 21 '22 21:05 Aust1n46