Skip to content

Add new permission and bypass for message toggle#9

Open
AjMaacc wants to merge 3 commits intoAust1n46:v4.0.0-stablefrom
AjMaacc:v.4.0.0-stable
Open

Add new permission and bypass for message toggle#9
AjMaacc wants to merge 3 commits intoAust1n46:v4.0.0-stablefrom
AjMaacc:v.4.0.0-stable

Conversation

@AjMaacc
Copy link

@AjMaacc AjMaacc commented May 20, 2022

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 AjMaacc changed the title Added new permission and bypass for message toggle Add new permission and bypass for message toggle May 20, 2022
@Aust1n46
Copy link
Owner

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.

….java

Co-authored-by: Aust1n46 <aust1n46@yahoo.com>
@AjMaacc AjMaacc requested a review from Aust1n46 May 22, 2022 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants