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

Send message to Java if command is Bedrock-only #1834

Merged
merged 3 commits into from
Jan 17, 2021

Conversation

Camotoy
Copy link
Member

@Camotoy Camotoy commented Jan 13, 2021

If a Java player attempts to use a Bedrock-only command, such as geyser statistics, they will get an error message stating that this command is only for Bedrock players.

This commit also cleans up Velocity Adventure dependency usage. Issues were caused because of the way relocation works and because Velocity also uses Adventure.

If a Java player attempts to use a Bedrock-only command, such as `geyser statistics`, they will get an error message stating that this command is only for Bedrock players.

This commit also cleans up Velocity Adventure dependency usage. Issues were caused because of the way relocation works and because Velocity also uses Adventure.
@Camotoy Camotoy linked an issue Jan 13, 2021 that may be closed by this pull request
@vijaypondini
Copy link

Can we use this feature and include other commands java players are not allowed to use?

For example I have a forms plugin, and I don't want java players issuing server commands to open forms as it would spam errors to my console.

Is there a way to not allow java players to use commands you want, or is this just for geyser based commands?

@Camotoy
Copy link
Member Author

Camotoy commented Jan 14, 2021

This is just for Geyser based commands. If you want to implement that yourself, I would recommend to check for a Floodgate player and return a similar message if one is not found.

@Camotoy Camotoy merged commit 2d9baf1 into GeyserMC:master Jan 17, 2021
@Camotoy Camotoy deleted the javamessagecommands branch January 17, 2021 03:18
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.

Add a message for bedrock-only commands
3 participants