Baktus79 / BanFromClaim

A GriefDefender / GriefPrevention / Residence add-on that allows you to exclude other players from your claim.
https://www.spigotmc.org/resources/banfromclaim.70897/
GNU General Public License v3.0
3 stars 17 forks source link

[Bug] Not able to ban bedrock players from claims when they are offline #48

Open 777Ricky opened 3 weeks ago

777Ricky commented 3 weeks ago

Describe the bug Bedrock players can't be banned from claims when they are offline


ERROR MESSAGE image


Additional server information

BanFromClaim version: 1.6.6 Server version (use /ver): 1.20.4 Plugin list: image

Baktus79 commented 3 weeks ago

I have to investigate this one. I am very unsure how floodgate handles UUID numbers.

Baktus79 commented 3 weeks ago

I see that you still are on an older version, could you please update and see if this helps?

777Ricky commented 3 weeks ago

I see that you still are on an older version, could you please update and see if this helps?

I will try this I was under the impression it was only 1.21+ for the newer versions

777Ricky commented 3 weeks ago

Issue is still present on latest version of the plugin

777Ricky commented 3 weeks ago

I have to investigate this one. I am very unsure how floodgate handles UUID numbers.

Also this is an easy way to check if a player is bedrock or not (it's how floodgate does it)

https://github.com/GeyserMC/Floodgate/blob/master/core/src/main/java/org/geysermc/floodgate/api/SimpleFloodgateApi.java#L115

Baktus79 commented 1 week ago

I really dont understand why this would not work. The UUID will be stored in the world folder along with the playername. The server should not have known the difference between a Geyser player or a normal player.

If the player has been on your server earlier, the player should be cached.

You can check this by looking in the folder world/playerdata. See if you can find the users UUID number.