Describe the bug
When running a 1.20.2 server, NoxesiumUtils fails to load
Server Information (please complete the following information):
NoxesiumUtils Version: 1.5.0
Server Version: Paper 1.20.2
Server logs:
[22:12:20 INFO]: [NoxesiumUtils] Enabling NoxesiumUtils v1.5.0
[22:12:20 WARN]: java.lang.reflect.InvocationTargetException
[22:12:20 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
[22:12:20 WARN]: at java.base/java.lang.reflect.Method.invoke(Method.java:577)
[22:12:20 WARN]: at NoxesiumUtils-1.5.0.jar//me.superneon4ik.noxesiumutils.commandapi.CommandAPI.registerCommand(CommandAPI.java:281)
[22:12:20 WARN]: at NoxesiumUtils-1.5.0.jar//me.superneon4ik.noxesiumutils.NoxesiumUtils.registerCommands(NoxesiumUtils.java:89)
[22:12:20 WARN]: at NoxesiumUtils-1.5.0.jar//me.superneon4ik.noxesiumutils.NoxesiumUtils.onEnable(NoxesiumUtils.java:59)
[22:12:20 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281)
[22:12:20 WARN]: at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:189)
[22:12:20 WARN]: at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104)
[22:12:20 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507)
[22:12:20 WARN]: at org.bukkit.craftbukkit.v1_20_R2.CraftServer.enablePlugin(CraftServer.java:646)
[22:12:20 WARN]: at org.bukkit.craftbukkit.v1_20_R2.CraftServer.enablePlugins(CraftServer.java:557)
[22:12:20 WARN]: at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:627)
[22:12:20 WARN]: at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:424)
[22:12:20 WARN]: at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:308)
[22:12:20 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1086)
[22:12:20 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315)
[22:12:20 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)
[22:12:20 WARN]: Caused by: java.lang.IllegalStateException: Tried to access CommandAPIHandler instance, but it was null! Are you using CommandAPI features before calling CommandAPI#onLoad?
[22:12:20 WARN]: at NoxesiumUtils-1.5.0.jar//me.superneon4ik.noxesiumutils.commandapi.CommandAPIHandler.getInstance(CommandAPIHandler.java:169)
[22:12:20 WARN]: at NoxesiumUtils-1.5.0.jar//me.superneon4ik.noxesiumutils.commandapi.AbstractCommandAPICommand.register(AbstractCommandAPICommand.java:293)
[22:12:20 WARN]: at NoxesiumUtils-1.5.0.jar//me.superneon4ik.noxesiumutils.NoxesiumUtilsCommand$Command.register(NoxesiumUtilsCommand$Command.java:24)
[22:12:20 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[22:12:20 WARN]: ... 16 more
[22:12:20 ERROR]: Error occurred while enabling NoxesiumUtils v1.5.0 (Is it up to date?)
java.lang.IllegalStateException: Tried to access CommandAPIBukkit instance, but it was null! Are you using CommandAPI features before calling CommandAPI#onLoad?
at me.superneon4ik.noxesiumutils.commandapi.CommandAPIBukkit.get(CommandAPIBukkit.java:81) ~[NoxesiumUtils-1.5.0.jar:?]
at me.superneon4ik.noxesiumutils.commandapi.arguments.EntitySelectorArgument$ManyPlayers.<init>(EntitySelectorArgument.java:176) ~[NoxesiumUtils-1.5.0.jar:?]
at me.superneon4ik.noxesiumutils.NoxesiumUtils.registerCommands(NoxesiumUtils.java:91) ~[NoxesiumUtils-1.5.0.jar:?]
at me.superneon4ik.noxesiumutils.NoxesiumUtils.onEnable(NoxesiumUtils.java:59) ~[NoxesiumUtils-1.5.0.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[paper-api-1.20.2-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:189) ~[paper-1.20.2.jar:git-Paper-299]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[paper-1.20.2.jar:git-Paper-299]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[paper-api-1.20.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R2.CraftServer.enablePlugin(CraftServer.java:646) ~[paper-1.20.2.jar:git-Paper-299]
at org.bukkit.craftbukkit.v1_20_R2.CraftServer.enablePlugins(CraftServer.java:557) ~[paper-1.20.2.jar:git-Paper-299]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:627) ~[paper-1.20.2.jar:git-Paper-299]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:424) ~[paper-1.20.2.jar:git-Paper-299]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:308) ~[paper-1.20.2.jar:git-Paper-299]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1086) ~[paper-1.20.2.jar:git-Paper-299]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315) ~[paper-1.20.2.jar:git-Paper-299]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[22:12:20 INFO]: [NoxesiumUtils] Disabling NoxesiumUtils v1.5.0
Describe the bug When running a 1.20.2 server, NoxesiumUtils fails to load
Server Information (please complete the following information):
Server logs: