0

So my minecraft server has an economy plugin I've been working on. After battling a couple of days, I realised this is a common problem with Java that it won't unload the classes which are already loaded. So when I tried the plugin on a fresh server instance, it was working correct.

My question is how can I fix the original server? I tried deleting the updated JAR file from that server, ran and stopped the server as a guess that it'd remove the pre-loaded classes but instead that generated the files related to the previous version of plugin, even though the plugin's JAR wasn't in the directory.

perryprog
  • 111
  • 2
  • 13
Akash Agarwal
  • 2,326
  • 1
  • 27
  • 57

1 Answers1

1

First, what is not working? If it's crashing, please edit this and add a bit of the console log where the error is happening.

If it's working properly on another server make sure the JARs are all compiled from the latest source.

There could also be a conflict with another plugin. Try disabling all other plugins and see if it works than.

perryprog
  • 111
  • 2
  • 13
  • Ha! I just realized my profile pic is my crazy old MC skin. I need to update that... – perryprog Dec 23 '16 at 23:13
  • 1
    The updated plugin source is not being picked by the server. And since it's working properly the JAR is updated already. I've checked the JAR with a decompiler before too as well. I'll try the last part.. Sleepy AF right now. Mushroom cows are good haha! – Akash Agarwal Dec 23 '16 at 23:25
  • You never know- is the JAR in the plugins folder? Or is there another JAR with a similar name? – perryprog Dec 23 '16 at 23:31
  • Holy shit! I figured out the problem. I can't believe I did this mistake. I made a previous plugin before and idk how it has the old version of this plugin which has been driving me crazy, and it is in the same folder. – Akash Agarwal Dec 24 '16 at 14:51
  • Ha! So I guess it was a conflict with that old plugin? – perryprog Dec 24 '16 at 16:20
  • Yeah, old files of this plugin existed in another plugin that I made. – Akash Agarwal Dec 25 '16 at 05:55