TechnicallyCoded / Inventory-Rollback-Plus

Spigot/Bukkit plugin that allows server moderators to restore player items and data from backups.
https://www.spigotmc.org/resources/85811/
Other
78 stars 44 forks source link

Bug report: No Shulkers #63

Closed Specthra closed 2 years ago

Specthra commented 2 years ago

### Bug description: Shulkers do not appear in user backups

### Server details:

Update link: https://www.spigotmc.org/resources/inventoryrollback-plus.85811/

### How to reproduce: Updated plugin from 1.17 to 1.18. The database was linked and everything appears except the shulkers

### What was expected: Being able to have the shulkers to restore them in the users' inventories

### Screenshots, logs & other: https://prnt.sc/26e0oth https://prnt.sc/26e0pcu

TechnicallyCoded commented 2 years ago

Are there any error logs?

Specthra commented 2 years ago

No, no errors on console It's as if they were never saved

TechnicallyCoded commented 2 years ago

Well, are the changes actually in the file and is the database marked as enabled?

Specthra commented 2 years ago

yes, everything is there but not the shulkers.

TechnicallyCoded commented 2 years ago

I feel real stupid right now, that answer was supposed to be for another issue... sorry Do backups created in 1.18 appear normally in 1.18?

Specthra commented 2 years ago

Saved in version 1.17.1 Server was updated from that version to 1.18.1

A backup was made in case something goes wrong, it was linked to the database and the shulkers do not appear in the inventory backups

TechnicallyCoded commented 2 years ago

It's normal for certain items to not work across versions. The way that items are stored to a string of characters to later be decoded back into items is very much version dependent. Could you try running a force backup of the player's inventory now that they are in 1.18? If the items don't appear for the same version, I am worried. Otherwise, unfortunately, there isn't much we can do about this other than creating translation layers for each version which isn't worth the time for just backups. Also, if the plugin is working normally, old backups, even if incompatible, should not be damaged from trying to be viewed in another version. If you copy the database or config file entry to a 1.17 server all the data should still be available.

TechnicallyCoded commented 2 years ago

I'll re-open if 1.18 saves don't work in 1.18, I get discord pings for these messages even if it's closed so dw. However, I need to cleanup what I think should be resolved. Have a nice day :)