ChestShop-authors / ChestShop-3

ChestShop - the chest & sign shop plugin for Minecraft Servers running Bukkit/Spigot/Paper
https://dev.bukkit.org/projects/chestshop
GNU Lesser General Public License v2.1
275 stars 176 forks source link

Not working with floodgate/geyser #517

Closed mrcoffee1026 closed 2 years ago

mrcoffee1026 commented 2 years ago

What is happening?

States "invalid username" when bedrock player (username preceeded with a "+") tries to purchase anything.

What did you expect to happen?

Should be able to purchase items as usual.

Plugin Version

3.12.1-SNAPSHOT (build 345)

Plugin Config

This makes sure that the UUIDs of player shop accounts match the server's online-mode setting. Disabling this might lead to issues with offline players and is therefore unsupported!

ENSURE_CORRECT_PLAYERID: false

This regexp validates the name of the player. If the name doesn't match, the player will neither be able to create a valid shop sign, nor buy/sell from a shop.

Note for Bedrock support: If you have Floodgate on your server, you should set this regexp to ^\*?\w+$ and ENSURE_CORRECT_PLAYERID to false

If your Floodgate prefix is not , change the first in the regexp (the one before the question mark) to whatever your prefix is.

VALID_PLAYERNAME_REGEXP: "^\*?\w+$"

Server Version

This server is running Paper version git-Paper-357 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: f210f67)

Server Log

n/a

What other plugins are you running?

n/a

Agreements

Additional context

No response

Phoenix616 commented 2 years ago

Well you have not set your VALID_PLAYERNAME_REGEXP properly to accommodate for your prefix.

mrcoffee1026 commented 2 years ago

Yes, you're right, failed to read the "replace the *" part, sorry. Thanks for the help!