Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new permission and bypass for message toggle #9

Open
wants to merge 3 commits into
base: v4.0.0-stable
Choose a base branch
from

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.

None yet

2 participants