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

Added Bedrock Geyser/Floodgate Support #69

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

A6uh
Copy link

@A6uh A6uh commented Aug 1, 2024

Changes

  • Added the ability to specify Floodgate's username prefix in config with comments
  • Added that prefix to the regex when handling other players
  • Added the respective key-value pair

This addresses issue #15 and issue #45 for Geyser incompatibility.

Details:
The issue in both cases is caused by Floodgate (used in conjunction with Geyser as it's required to join Online servers) adding a prefix to bedrock usernames using an illegal character for Java usernames. This character is added to avoid username overlap conflicts and by default is set to "." but can be configured to be any (recommended non-alphanumeric) character. The regex in commands/Time.java:281 was returning Player Not Found if a non-alphanumeric character was used. The changes I've made address this and add the ability to configure the prefix to match what the users have in Floodgate.

I've tested the changes to ensure it was working for these players and will accept any character that Floodgate can use without issue. I've also ensured that users wouldn't have problems updating to this version as the config will now add the floodgate-username-prefix if it doesn't already exist.

@A6uh A6uh changed the title Add Bedrock Geyser/Floodgate Support Added Bedrock Geyser/Floodgate Support Aug 2, 2024
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.

1 participant