prism / PrismRefracted

A continuation of Prism, a change-tracking plugin for Bukkit-based servers.
Other
44 stars 22 forks source link

Allow for dots (".") in usernames on player parameter to allow for prism lookup on floodgate/geysermc players #78

Open guss-alberto opened 4 months ago

guss-alberto commented 4 months ago

Many servers use geysermc and floodgate to allow for bedrock players to join, this plugin prepends a "." by default to the Xbox username to avoid collisions with Java usernames.

Prism has no problem tracking their actions, however trying to filter for a player with a "." in the username returns a syntax error. This makes it very hard if not impossible to perform lookups or rollbacks for a specific bedrock player.

While you can change the "." to a different character in floodgate config, this defeats the point of having a character that is not present in java usernames.

It should be easy to implement, as a simple change too the regex for validating player names in PlayerParamater and RadiusParamarer to allow for "." is all that's needed. I have tested this and it seems to cause no issues.