toppev / strike-tab

StrikePractice per player tablist addon.
MIT License
7 stars 2 forks source link

Error: NoSuchMethodException: net.minecraft.server.v1_8_R3.PacketPlayOutPlayerInfo$PlayerInfoData... #10

Closed zTony665 closed 2 years ago

zTony665 commented 2 years ago

Hello, the tab gives error when entering each user and nothing is displayed in the tab, in a practice from 0.

Error:

` [18:53:44 WARN]: Exception in thread "Craft Scheduler Thread - 7" [18:53:44 WARN]: org.apache.commons.lang.UnhandledException: Plugin StrikeTab v0.3.9 generated an exception while executing task 3116 at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) at org.github.paperspigot.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.RuntimeException: Cannot find PlayerInfoData constructor. at com.comphenix.protocol.wrappers.PlayerInfoData$1.getGeneric(PlayerInfoData.java:113) at com.comphenix.protocol.wrappers.PlayerInfoData$1.getGeneric(PlayerInfoData.java:96) at com.comphenix.protocol.wrappers.BukkitConverters.getGenericList(BukkitConverters.java:300) at com.comphenix.protocol.wrappers.BukkitConverters.access$100(BukkitConverters.java:88) at com.comphenix.protocol.wrappers.BukkitConverters$3.getGeneric(BukkitConverters.java:367) at com.comphenix.protocol.wrappers.BukkitConverters$3.getGeneric(BukkitConverters.java:359) at com.comphenix.protocol.wrappers.Converters$1.getGeneric(Converters.java:48) at com.comphenix.protocol.reflect.StructureModifier.writeInternal(StructureModifier.java:372) at com.comphenix.protocol.reflect.StructureModifier.write(StructureModifier.java:345) at com.keenant.tabbed.util.Packets.getPacket(Packets.java:37) at com.keenant.tabbed.tablist.SimpleTabList.getUpdate(SimpleTabList.java:268) at com.keenant.tabbed.tablist.SimpleTabList.update(SimpleTabList.java:229) at com.keenant.tabbed.tablist.SimpleTabList.update(SimpleTabList.java:196) at com.keenant.tabbed.tablist.SimpleTabList.set(SimpleTabList.java:136) at com.keenant.tabbed.tablist.TableTabList.reset(TableTabList.java:257) at com.keenant.tabbed.tablist.TableTabList.enable(TableTabList.java:58) at ga.strikepractice.striketab.updater.TabbedTabUpdater$onJoin$1.run(TabbedTabUpdater.kt:172) at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59) at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 4 more Caused by: java.lang.NoSuchMethodException: net.minecraft.server.v1_8_R3.PacketPlayOutPlayerInfo$PlayerInfoData.(net.minecraft.server.v1_8_R3.PacketPlayOutPlayerInfo, com.mojang.authlib.GameProfile, int, net.minecraft.server.v1_8_R3.WorldSettings$EnumGamemode, net.minecraft.server.v1_8_R3.IChatBaseComponent) at java.lang.Class.getConstructor0(Class.java:3082) at java.lang.Class.getConstructor(Class.java:1825) at com.comphenix.protocol.wrappers.PlayerInfoData$1.getGeneric(PlayerInfoData.java:111) ... 22 more

`

iiAhmedYT commented 2 years ago

okay so.. you need to provide your server version and what spigot do you use exactly

toppev commented 2 years ago

Looks like you're using a custom spigot and not the regular spigot or paper spigot. You can try legacy paper versions (https://papermc.io/legacy)

zTony665 commented 2 years ago

I use nSpigot

toppev commented 2 years ago

Custom spigots are not supported by me as they may have breaking changes (like here). This issue can be re-opened if it occurs on regular spigot (unlikely)