Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while enabling the plugin #3

Open
kimoVoid opened this issue Mar 25, 2024 · 4 comments
Open

Error while enabling the plugin #3

kimoVoid opened this issue Mar 25, 2024 · 4 comments

Comments

@kimoVoid
Copy link

The plugin isn't loading on the latest paper 1.20.4. I'm using java 17 on windows, and there are no other plugins.

[10:43:49 INFO]: [spider-animation] Enabling spider-animation v1.0-SNAPSHOT
[10:43:49 INFO]: [spider-animation] SpiderAnimation plugin enabled
[10:43:49 ERROR]: Error occurred while enabling spider-animation v1.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException: null
        at com.heledron.spideranimation.SpiderAnimationPlugin.onEnable(SpiderAnimationPlugin.kt:20) ~[SpiderAnimation-1.0-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:188) ~[paper-1.20.4.jar:git-Paper-461]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[paper-1.20.4.jar:git-Paper-461]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugin(CraftServer.java:639) ~[paper-1.20.4.jar:git-Paper-461]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugins(CraftServer.java:550) ~[paper-1.20.4.jar:git-Paper-461]
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:671) ~[paper-1.20.4.jar:git-Paper-461]
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:431) ~[paper-1.20.4.jar:git-Paper-461]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:309) ~[paper-1.20.4.jar:git-Paper-461]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1131) ~[paper-1.20.4.jar:git-Paper-461]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[paper-1.20.4.jar:git-Paper-461]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
[10:43:49 INFO]: [spider-animation] Disabling spider-animation v1.0-SNAPSHOT
@Lolbiq
Copy link

Lolbiq commented Mar 29, 2024

I figured out that the problem is in mismatching of versions of PaperMC server and of Spider-Animation plugin. But that's not so hard to get thou. I guess it'd be easier if author would have mentioned the version of minecraft on which he has done his project. I think the task to fix this is very easy for the developer. He just gave us the source code, but he didn't think that random players would be interested in it, or didn't think that not everybody understands how all this stuff works. For him it's easy, and he might think: "Ok, i gave 'em all what they need". And that is true. But how to use it? XD

@wordandahalf
Copy link

I figured out that the problem is in mismatching of versions of PaperMC server and of Spider-Animation plugin. But that's not so hard to get thou. I guess it'd be easier if author would have mentioned the version of minecraft on which he has done his project. I think the task to fix this is very easy for the developer. He just gave us the source code, but he didn't think that random players would be interested in it, or didn't think that not everybody understands how all this stuff works. For him it's easy, and he might think: "Ok, i gave 'em all what they need". And that is true. But how to use it? XD

Perhaps it's not the author's responsibility to cater to non-technical users. The error you encountered has nothing to do with the version of the server, it indicates that it couldn't find a world. And, you could very easily find the necessary server version by searching for "version" in the repo.

@TheCymaera
Copy link
Owner

This is fixed in the version 2 beta.

I used a hard-coded world id in version 1. Make sure the world folder is named world.

When you run the server for the first time, it may generate world after the plugin has already been enabled, in which case you need to run /reload.

@TheCymaera
Copy link
Owner

I figured out that the problem is in mismatching of versions of PaperMC server and of Spider-Animation plugin. But that's not so hard to get thou. I guess it'd be easier if author would have mentioned the version of minecraft on which he has done his project. I think the task to fix this is very easy for the developer. He just gave us the source code, but he didn't think that random players would be interested in it, or didn't think that not everybody understands how all this stuff works. For him it's easy, and he might think: "Ok, i gave 'em all what they need". And that is true. But how to use it? XD

I've added a README. Let me know if there's anything else you think should be clarified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants