PEXPlugins / PermissionsEx

A powerful permissions plugin for Minecraft
https://permissionsex.stellardrift.ca
Apache License 2.0
480 stars 298 forks source link

Lost userdata after player changed username #2440

Closed lifehome closed 6 years ago

lifehome commented 8 years ago

Situation

Similar to #2232, my server has appeared a weird situation. A player has already played on my server for quite a period, and suddenly he reported that he lost every dime of permission. I checked on the PermissionsEX plugin, using /pex user <playerName> info the commands returned nothing.

Bug

After a previously logged in player changed the username, PermissionsEx cannot retrieve the data.

Stormbow commented 8 years ago

As far as I know, user data is retrieved by the UUID since Minecraft 1.7.9 and higher. If your server is 1.7.9+ and running in offline mode, it doesn't have UUIDs. In that case, you should be aware that PEX does not support offline mode and you should encourage your users to not use hacked/torrented/illegally downloaded Minecraft clients and to buy the game. ;-)

This is all irrelevant.

Stormbow commented 8 years ago

@zml2008 can answer as to how the info is accessed by PEX.

lifehome commented 8 years ago

I'm sorry that I failed to mention my server is in online mode, Spigot 1.10, non-Bungee.

zml2008 commented 8 years ago

Are you on 1.x or 2.x?

Either way, pastebin the permissions file and give us the username of the player having issues.

lifehome commented 8 years ago

2.x snapshot

zml2008 commented 8 years ago

Ok, can you pastebin the permissions.json or upload the permissions.mv.db?

lifehome commented 8 years ago

Here it is: https://gist.github.com/lifehome/cf8d1460991541fd76aa6d6f6d402546

What it shows after the info command to the problematic user:

>pex user FoR_GeT_Me info                                                          
[06:55:15 INFO]: Information for user 528e6067-6458-4cc2-8383-b6ff35e81e89
>pl
[06:59:18 INFO]: Plugins (12): PermissionsEx, WorldEdit, Vault, CommandBook, Fe, Multiverse-Core, WorldGuard, PickupMoney, ServerSigns, LWC, LWC-Economy, ChestShop
>about
[06:59:26 INFO]: This server is running Paper version git-Paper-777 (MC: 1.10) (Implementing API version 1.10-R0.1-SNAPSHOT)
[06:59:26 INFO]: Checking version, please wait...
[06:59:27 INFO]: You are 15 version(s) behind
>
zml2008 commented 8 years ago

So the permissions file you posted only has you listed as a user. Is that the actual file you're running your server with?

lifehome commented 8 years ago

Yes indeed, no matter how many times I restart the server.

zml2008 commented 6 years ago

Unfortunately PermissionsEx is currently unmaintained and no further updates are planned. Because of this, all pull requests are being closed. If you are looking for an actively maintained permissions plugin, take a look at LuckPerms. It is compatible with major server platforms and can import data from PEX.