EbonJaeger / perworldinventory-kt

Multi-world inventory plugin for Spigot written in Kotlin.
MIT License
46 stars 35 forks source link

Color Format Doesn't save? #176

Open EnderProjects opened 4 years ago

EnderProjects commented 4 years ago

Describe the bug Upon entering and leaving new worlds, items with custom name and/or lore will lose their format code and be replaced with "??6" as an example. This doesn't happen 100% of the time but due to how the server I'm apart of uses custom items for villager trading become useless. I really have no knowledge onto why it could be happening but I'm willing to send any information to help solve this issue

To Reproduce Steps to reproduce the behavior:

  1. warp to a different world
  2. Go back to original world
  3. See error https://imgur.com/a/gHJ6MjA

Expected behavior Format to stay https://imgur.com/a/Z4wbJNd

Plugin version

Server version 1.15.2

ghost commented 4 years ago

I'm having the same problem, if you find a fix could you please let me know?

EbonJaeger commented 4 years ago

This would be a bug with the server software. I think I remember seeing reports of this with Spigot or Paper, not sure which.

EnderProjects commented 4 years ago

must be spigot then I'll look around there thank you!

EbonJaeger commented 4 years ago

Link to Spigot bug: https://hub.spigotmc.org/jira/browse/SPIGOT-5063

EnderProjects commented 4 years ago

As i was testing a new command I noticed that items loss data upon cache

Set the duration in minutes for player profile information to be cached cache-duration: 10

If I were to go back to a world before that time is up. it seems to not break the items

EbonJaeger commented 4 years ago

@EnderProjects yes, because that is being cached in memory and thus does not have to be deserialized by the server, which breaks it.

EbonJaeger commented 4 years ago

I'm looking at creating a workaround for this issue, but colors save properly for me on latest Paper. Can anyone verify that this works for them? Just rename this file from .zip to .jar: perworldinventory-kt-2.3.3.zip

EnderProjects commented 4 years ago

We have moved to paper since recently and haven't got the same issue yet. Is it safe to use the jar you provided in this case?

EbonJaeger commented 4 years ago

@EnderProjects it should be, yeah. All it should be doing is going through all of the color codes and replacing any broken ones.

EnderProjects commented 4 years ago

Ok, so after a server restart. It seemed to of happen right when I logged on https://imgur.com/a/NULoT55 After that I tested going to and from worlds, resulting in the same outcome with a reload in between. ex: tp to world, reload, tp back https://imgur.com/a/ayk96E5

EbonJaeger commented 4 years ago

Can you send me the json file for the player data that it happens on?

EnderProjects commented 4 years ago

https://pastebin.com/nCsxsQLK

EnderProjects commented 4 years ago

Also by using the method I said before by tp, reload, tp has a 100% so far on recreating the issue.

jk526 commented 4 years ago

Is there any update on this? We're having the exact same issue!

Ash10744 commented 3 years ago

Having this issue on version 1.16.4 unknown-19