Minebench/SyncInv

class java.lang.String cannot be cast to class java.util.Map

MnkyArts opened this issue · 0 comments

Used Version

[SyncInv] Enabling SyncInv v0.6.2-SNAPSHOT (build 99)

Config

Its the default config, didn't change anything except for redis connection and the server settings.

Environment description

Running paper using pterodactyl through docker container.

Full Log

[17:07:24 WARN]: [SyncInv] Error while trying to access PersistentDataContainer data ({}). Disabling persistent data syncing!
java.lang.ClassCastException: class java.lang.String cannot be cast to class java.util.Map (java.lang.String and java.util.Map are in module java.base of loader 'bootstrap')
        at de.minebench.syncinv.SyncInv.getData(SyncInv.java:958) ~[SyncInv.jar:?]
        at de.minebench.syncinv.listeners.PlayerQuitListener.onPlayerQuit(PlayerQuitListener.java:60) ~[SyncInv.jar:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor6.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:git-Purpur-2090]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.20.2.jar:git-Purpur-2090]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[purpur-1.20.2.jar:git-Purpur-2090]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.players.PlayerList.remove(PlayerList.java:617) ~[purpur-1.20.2.jar:git-Purpur-2090]
        at net.minecraft.server.players.PlayerList.remove(PlayerList.java:601) ~[purpur-1.20.2.jar:git-Purpur-2090]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.removePlayerFromWorld(ServerGamePacketListenerImpl.java:2137) ~[?:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.onDisconnect(ServerGamePacketListenerImpl.java:2117) ~[?:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.onDisconnect(ServerGamePacketListenerImpl.java:2104) ~[?:?]
        at net.minecraft.network.Connection.handleDisconnection(Connection.java:846) ~[?:?]
        at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:260) ~[?:?]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1607) ~[purpur-1.20.2.jar:git-Purpur-2090]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:486) ~[purpur-1.20.2.jar:git-Purpur-2090]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1406) ~[purpur-1.20.2.jar:git-Purpur-2090]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1177) ~[purpur-1.20.2.jar:git-Purpur-2090]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[purpur-1.20.2.jar:git-Purpur-2090]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]

What other programs/plugins are you running?

OpenInv

What is happening?

The Error occurs sometimes when i switch between server