Valorless / HavenBags

Minecraft 1.17 - 1.21.1 Plugin
https://www.spigotmc.org/resources/110420/
Other
3 stars 1 forks source link

Bags don't open after upgrading to the new version #2

Closed RaibuX closed 11 months ago

RaibuX commented 11 months ago

I've upgraded the bags from version 1.5 to the most recent version at the moment. All bag UUIDs are still in place, but players can't open their bags. What to do?

Valorless commented 11 months ago

Is anything reported in the console?

Valorless commented 11 months ago

Had to rush off the pc as I wrote.. sorry. Could you send me a copy of the config file, and maybe a picture of the /bags folder? I'll take a look if anything went wrong :)

RaibuX commented 11 months ago

Could it be that we are blocked by Mojang because the files are not converted to UUIDs? We have hosting in Moscow.

сб, 25 нояб. 2023 г. в 19:55, Valor @.***>:

Had to rush off the pc as I wrote.. sorry. Could you send me a copy of the config file, and maybe a picture of the /bags folder? I'll take a look if anything went wrong :)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

RaibuX commented 11 months ago

photo_2023-11-25_19-28-25 https://i.ibb.co/jgW8t3y/filezilla-QZVY33gn-NA.png

Valorless commented 11 months ago

Ahh, that is most likely it, though can't be certain. The UUIDFetcher that HavenBags uses does contact the Mojang API, if Bukkit is unable to provide the UUID.

My guess is that during conversion, players offline did not have their bags changed. You may still be able to access bag contents via bag commands, to give the players their items back.

You can also try converting bag data again, by removing the variable "config-version" from the config file, or setting it to 0.

RaibuX commented 11 months ago

image maybe you'r right, but I tried to restore another player's bag, but it first tells me that "No player's bags found" and then shows me the UUID of his bags :D image

Valorless commented 11 months ago

I'm sorry to say, but I currently have no plans on updating HavenBags at the moment. But when I do, I'll add a option to use Usernames instead of UUIDs. I never considered some regions wouldn't have access to the API, but I'll take it into consideration from now on :)

Valorless commented 9 months ago

Greetings RaibuX! As of the latest version, the only usage of the UUIDFetcher is only within the BagConversion function, which converts bag data from Usernames to UUIDs; And the CommandListener when Bukkit couldn't the desired player on the server. (offline or online)

This should mean that you may be able to use HavenBags without issues now ^^ Although I'd recommend resetting bag data, to ensure no incompatibility :)