Theguyhere0 / villager-defense-minigame

A Minecraft plugin that adds a fun, customizable minigame where players defend villagers against waves of monsters
GNU General Public License v3.0
6 stars 4 forks source link

[BUG] Plugin won't start #129

Closed Tharylia closed 1 year ago

Tharylia commented 1 year ago

Describe the bug The plugin won't load on startup:

[18:18:13 ERROR]: Could not load 'plugins/VillagerDefense-1.2.4.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.IllegalStateException: Current version not set at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:158) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:413) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:321) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_19_R2.CraftServer.loadPlugins(CraftServer.java:436) ~[paper-1.19.3.jar:git-Paper-366] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:273) ~[paper-1.19.3.jar:git-Paper-366] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1101) ~[paper-1.19.3.jar:git-Paper-366] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.19.3.jar:git-Paper-366] at java.lang.Thread.run(Thread.java:833) ~[?:?] Caused by: java.lang.IllegalStateException: Current version not set at me.theguyhere.villagerdefense.plugin.tools.NMSVersion.getCurrent(NMSVersion.java:44) ~[VillagerDefense-1.2.4.jar:?] at me.theguyhere.villagerdefense.plugin.Main.(Main.java:39) ~[VillagerDefense-1.2.4.jar:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) ~[?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) ~[?:?] at java.lang.Class.newInstance(Class.java:645) ~[?:?] at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:83) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:154) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?] ... 7 more

To Reproduce Steps to reproduce the behavior:

  1. Run server with Paper version git-Paper-366 (MC: 1.19.3) (Implementing API version 1.19.3-R0.1-SNAPSHOT) (Git: 8d7d927)
  2. Drop VillagerDefense-1.2.4.jar in plugins folder
  3. Start server
  4. See error

Expected behavior Load plugin

Screenshots

Server and plugin versions (please complete the following information):

Additional context

Theguyhere0 commented 1 year ago

It seems like 1.19.3 broke it. I'll get a patch for it soon, but for now stick to 1.19.2 for your server. Thanks for bringing it up!