gonalez / znpcs

New version of znpcs plugin. A spigot/bukkit plugin to create npcs
https://www.spigotmc.org/resources/znpcs.80940
Apache License 2.0
51 stars 25 forks source link

Error in Console, and dissaper NPC #83

Open tomimza opened 1 year ago

tomimza commented 1 year ago

[16:53:02 WARN]: [ServersNPC] Plugin ServersNPC v4.2 generated an exception while executing task 165 java.lang.AssertionError: can't invoke method: updateScoreboard at io.github.gonalez.znpcs.npc.packet.PacketCache.lambda$getOrCache$0(PacketCache.java:54) ~[znpcs-4.2.jar:?] at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[?:?] at io.github.gonalez.znpcs.npc.packet.PacketCache.getOrCache(PacketCache.java:50) ~[znpcs-4.2.jar:?] at io.github.gonalez.znpcs.npc.packet.PacketCache$PacketHandler.invoke(PacketCache.java:82) ~[znpcs-4.2.jar:?] at jdk.proxy19.$Proxy152.updateScoreboard(Unknown Source) ~[znpcs-4.2.jar:?] at io.github.gonalez.znpcs.npc.NPC.spawn(NPC.java:217) ~[znpcs-4.2.jar:?] at io.github.gonalez.znpcs.npc.task.NPCManagerTask.run(NPCManagerTask.java:32) ~[znpcs-4.2.jar:?] at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[lightspigot-1.19.4.jar:git-LightSpigot-"321435f"] at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[lightspigot-1.19.4.jar:git-LightSpigot-"321435f"] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[lightspigot-1.19.4.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:833) ~[?:?] Caused by: java.lang.reflect.InvocationTargetException at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at io.github.gonalez.znpcs.npc.packet.PacketCache.lambda$getOrCache$0(PacketCache.java:52) ~[znpcs-4.2.jar:?] ... 12 more Caused by: java.lang.IllegalArgumentException: argument type mismatch at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at io.github.gonalez.znpcs.npc.packet.Packet.updateScoreboard(Packet.java:84) ~[znpcs-4.2.jar:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at io.github.gonalez.znpcs.npc.packet.PacketCache.lambda$getOrCache$0(PacketCache.java:52) ~[znpcs-4.2.jar:?] ... 12 more

    My server version is 1.19 and another server is 1.20 same error.
MatinHQ commented 1 year ago

I have same problem

LimesKey commented 11 months ago

Same