AlphaChest

233k Downloads

Failing to convert old chest file names to UUID

ChrisLane opened this issue ยท 4 comments

commented

I am using the latest Spigot version and have learnt that the plugin is failing to convert the old username files to the new UUID file names.

I will try and add some of my own debugging to find more specific problems here.

commented

Unfortunately my Java knowledge doesn't quite extend to understand how to do that. Not sure what exception I would be trying to get or how to get the information.

Mind pasting a little bit of code that I can put in?

commented

Did some testing: http://paste2.org/50cPA2I3

For some reason the plugin is only searching through two players, one of which hasn't been online for a month and the other has been offline for 7 months.

All player files are present in the world folder and the usercache is up to date.

commented

The plugin searches through all the players returned by Bukkit.getOfflinePlayers(). The code there is extraordinarily simple, and there is only one way out of the loop: the exception handler. Since you're inserting test code, I'd suggest you put something at VirtualChestManager.java line 66 to show more information about the exception being returned there. It's likely that there's something weird going on with whoever player number 3 is.

commented

Seems that this was indeed an issue with some dodgy player files. Closing this issue.