Add Geyser prefix option #4374
Labels
completed
The issue has been fully resolved and the change will be in the next Skript update.
enhancement
Feature request, an issue about something that could be improved, or a PR improving something.
priority: low
Issues that are not harmful to the experience but are related to useful changes or additions.
Suggestion
In Skript 2.6 regex to parse OfflinePlayer was changed to fix the lag exploit, but it introduced a new problem for servers which support Bedrock Edition players.
Add an option "geyser-prefix" to config so that Skript could recognise both players from Bedrock Edition and Java. Geyser adds a single character prefix to player names and because of regex, commands containing
<offlineplayer>
as arguments can't parse their names and throw an error which states the following:Basically, it shouldn't be hard expanding regex with just a single character. Default value could be an asterisk (*).
Why?
Basically, this option is needed for servers which accept both Bedrock Edition players and Java. It will allow correct parsing of Bedrock players for both arguments and strings parsed as OfflinePlayer. There is a way to kinda "fix" that just by storing uuid in a list and then parse it as OfflinePlayer, but this takes a lot of code changes instead of just adding an option which will allow to keep code clean.
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: