Open EstoesMoises opened 8 months ago
Having the same issue here: paper 1.20.4
{ "l::tscSurvival::175.0::66.0::-323.0": { "shopLoc": { "div": "::", "worldName": "tscSurvival", "x": 175.0, "y": 66.0, "z": -323.0 }, "owner": { "player": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "role": "OWNER" }, "managers": [], "members": [], "shopType": "ITRADE", "product": [ { "itemStack": { "==": "org.bukkit.inventory.ItemStack", "v": 3700, "type": "HOPPER", "meta": { "==": "ItemMeta", "meta-type": "TILE_ENTITY", "display-name": "{\"text\":\"\",\"extra\":[{\"text\":\"Level 1 \",\"obfuscated\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"color\":\"yellow\",\"bold\":false com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated string at line 26 column 197 path $.l::tscSurvival::175.0::66.0::-323.0.product[0].itemStack.meta.display-name
Expected behavior
JSON files should not be corrupted, instead according to the response to issue 153 from PR 156 the program should correct existing files.
Observed/Actual behavior
JSON file gets corrupted, e.g:
Causing the plugin to crash on start.
The only way to get the shop plugin up and running is either fixing the JSON manually deleting the relevant entry or deleting the JSON entirely.
Steps/models to reproduce
What will happen is that, on server restart, the JSON file that stores the data of the TradeShop plugin will get malformed, it will display a console message saying something about an 'err' file that doesn't get generated.
I pin this down to the ProtectionStone incompatibility because other blocks do not get this error. However, I haven't experimented enough to say that this bug could be extended to other blocks that would possess other special metadata and the plugin doesn't parse this right.
Plugin list
These are the other plugins installed, I uninstalled TradeShop when exporting this list.
[14:15:48 INFO]: Server Plugins (30): [14:15:48 INFO]: Paper Plugins: [14:15:48 INFO]: - BKCommonLib, MarriageMaster [14:15:48 INFO]: Bukkit Plugins: [14:15:48 INFO]: - AdvancedRegionMarket, ChatEmojis, Citizens, CoreProtect, Essentials, EssentialsChat, EssentialsSpawn, Factions, FancyHolograms, FastAsyncWorldEdit [14:15:48 INFO]: IridiumSkyblock, LibsDisguises, LightCleaner, LuckPerms, LWC, MobArena, Multiverse-Core, Multiverse-Portals, PlaceholderAPI, PlotSquared [14:15:48 INFO]: ProtectionStones, ProtocolLib, Randomtp, ServerBackup, spark, UltraCosmetics, Vault, WorldGuard
TradeShop version and Minecraft version (CraftBukkit/Spigot/Paper/...)
[14:19:54 INFO]: This server is running Paper version git-Paper-318 (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT) (Git: 9271ee7) You are running the latest version
TradeShop 2.6.1-STABLE by Lori00 & KillerOfPie
/tradeshop Display help message /ts help Display help message /ts setup Display shop setup tutorial /ts bugs Report bugs to the developers /ts metrics Displays the plugins counted metrics. /ts reload Reload configuration files
Agreements
Other
LOGS!
On server initialization: