PermissionsEx

PermissionsEx

14M Downloads

Lost userdata after player changed username

lifehome opened this issue ยท 10 comments

commented

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.

commented

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.

commented

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

commented

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

commented

Are you on 1.x or 2.x?

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

commented

2.x snapshot

commented

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

commented

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
>
commented

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

commented

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

commented

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.