MinusKube / Netherboard

Scoreboard API for your Minecraft Sponge and Bukkit Plugins, supporting all versions from 1.7 to 1.19.
Apache License 2.0
77 stars 21 forks source link

java.lang.ClassNotFoundException: net.minecraft.server.v1_8_R3.ScoreboardServer$Action #5

Closed ololjvNek closed 5 years ago

ololjvNek commented 5 years ago

Hi, i have an issue with API (Maven) this is it: [13:08:32] [Server thread/WARN]: [Server thread] ERROR fr.minuskube.netherboard.bukkit.util.NMS - Error while loading NMS methods. (Unsupported Minecraft version?) [13:08:32] [Server thread/WARN]: java.lang.ClassNotFoundException: net.minecraft.server.v1_8_R3.ScoreboardServer$Action [13:08:32] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) [13:08:32] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) [13:08:32] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [13:08:32] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [13:08:32] [Server thread/WARN]: at java.lang.Class.forName0(Native Method) [13:08:32] [Server thread/WARN]: at java.lang.Class.forName(Class.java:264) [13:08:32] [Server thread/WARN]: at fr.minuskube.netherboard.bukkit.util.NMS.getClass(NMS.java:139) [13:08:32] [Server thread/WARN]: at fr.minuskube.netherboard.bukkit.util.NMS.<clinit>(NMS.java:70) [13:08:32] [Server thread/WARN]: at fr.minuskube.netherboard.bukkit.BPlayerBoard.sendObjective(BPlayerBoard.java:129) [13:08:32] [Server thread/WARN]: at fr.minuskube.netherboard.bukkit.BPlayerBoard.<init>(BPlayerBoard.java:65) [13:08:32] [Server thread/WARN]: at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:47) [13:08:32] [Server thread/WARN]: at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:33) [13:08:32] [Server thread/WARN]: at pl.jms.grupowetp.Main.showSidebar(Main.java:54) [13:08:32] [Server thread/WARN]: at pl.jms.grupowetp.pl.jms.grupowetp.listeners.PlayerJoinListener.onJoin(PlayerJoinListener.java:27) [13:08:32] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [13:08:32] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [13:08:32] [Server thread/WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [13:08:32] [Server thread/WARN]: at java.lang.reflect.Method.invoke(Method.java:498) [13:08:32] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [13:08:32] [Server thread/WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [13:08:32] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [13:08:32] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.PlayerList.onPlayerJoin(PlayerList.java:298) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.PlayerList.a(PlayerList.java:157) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.LoginListener.b(LoginListener.java:144) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.LoginListener.c(LoginListener.java:54) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.NetworkManager.a(NetworkManager.java:231) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.ServerConnection.c(ServerConnection.java:148) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:814) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [13:08:32] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:748)

MinusKube commented 5 years ago

Oh, thank you for the report, I'll fix this asap. This is an issue with the last version, if you take the version 1.0.6, it should work correctly :)

ololjvNek commented 5 years ago

@MinusKube But i have version 1.0.6

fr.minuskube netherboard-bukkit 1.0.6

But now i look at logs and it now give me Null on buffer Caused by: java.lang.NullPointerException at fr.minuskube.netherboard.bukkit.BPlayerBoard.sendObjective(BPlayerBoard.java:131) ~[?:?] at fr.minuskube.netherboard.bukkit.BPlayerBoard.<init>(BPlayerBoard.java:65) ~[?:?] at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:47) ~[?:?] at pl.jms.grupowetp.Main.showSidebar(Main.java:57) ~[?:?] at pl.jms.grupowetp.pl.jms.grupowetp.listeners.PlayerJoinListener.onJoin(PlayerJoinListener.java:27) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[mc.jar:git-Spigot-21fe707-e1ebe52] ... 14 more

this.sendObjective(this.buffer, BPlayerBoard.ObjectiveMode.CREATE); - here is null

ololjvNek commented 5 years ago

@MinusKube

ololjvNek commented 5 years ago

@MinusKube Please answer I need api to finish the plugin

MinusKube commented 5 years ago
ololjvNek commented 5 years ago
  1. I use 1.8.8
  2. I checked and this version is based on Netherboard 1.0.6
MinusKube commented 5 years ago

I just checked and this problem only happen in Netherboard 1.1.0 due to the "ScoreboardServer$Action" not being found.

ololjvNek commented 5 years ago

Hmm ;/

ololjvNek commented 5 years ago

Can i copy all of Class to my plugin ?

MinusKube commented 5 years ago

Yeah, just make sure you respect the license :p https://github.com/MinusKube/Netherboard/blob/master/LICENSE

MinusKube commented 5 years ago

Fixed in 1.1.1! :)