Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by MystikDraggon, Jun 11, 2021 at 4:57 AM.
I export my plugin and it exports the previous jar file, how do I fix
By exporting the proper jar lol
Are you using maven? Eclipse, IntelliJ? Are you sure you’re checking in the right folder???
How export your jar?
Its eclipse and its the right folder
I think its a compiling error but I dont know how tk fix it
Does eclipse give you any error message ?
what do you mean previous jar file?
like older project that you compiled or older version of current project? you can open jar file with 7zip or winrar and check if its same as your current project..
also how did you figure out its previous jar?
Its the current project, if i deleted all the code it would still export the version with code
and I think it’s a project error because if I export a different project it works fine.
What errors does eclipse give you?
It’s legit impossible that eclipse doesn’t give any error message without exporting the jar.
the only thing it says is do you want to overwrite the previous file and I click yes
things to make sure the compilation goes smooth:
check that your project's saved (NOT compiled)
check that the name you're compiling with is the same you're putting into your plugins folder
reload/restart the server after applying the new compiled jar to the server plugins folder.
Ok I fixed it! I had to make a new project and copy all the code over and it worked!