27.03.2016, 23:22
I have a similar problem with reloader plugin. In my case shoebill does not load my jar correctly, for example, in my gamemode I load some classpath resources (like sql scripts, property files, etc) using getResourceAsStream, and, when my server is restarted by reloader plugin, sometimes I get random uncompressing ZIP exception, like "reached end of file", " invalid chunk length " and others. This doesn't happens if I start my server manually.
I think it happens because the server is restarted when the jar file is still beign writted by maven, and shoebill gets a corrupted version of the file.
Maybe this error can be fixed in reloaderplugin by sleeping inside the infinite loop for about a half second.
Also sometimes reloaderplugin reloads my gm fine, but when i enter the server it is the last gamemode, not the new compiled one, and again, I think that the problem is that shoebill simply gets the old version.
I think it happens because the server is restarted when the jar file is still beign writted by maven, and shoebill gets a corrupted version of the file.
Maybe this error can be fixed in reloaderplugin by sleeping inside the infinite loop for about a half second.
Also sometimes reloaderplugin reloads my gm fine, but when i enter the server it is the last gamemode, not the new compiled one, and again, I think that the problem is that shoebill simply gets the old version.