v2.0.2 - Improve reloading and cleaning up of BungeeCord plugins.

- Cleanup PluginClassLoader properly
- Cancel plugin tasks properly
- Fixed automatic updater on bungee
This commit is contained in:
Frank van der Heijden 2020-07-05 21:59:26 +02:00
parent f728c3e6bb
commit 584ce8be4d
No known key found for this signature in database
GPG key ID: 26DA56488D314D11
5 changed files with 53 additions and 16 deletions

View file

@ -175,7 +175,7 @@ public class UpdateCheckerTask implements Runnable {
if (isStartupCheck()) {
plugin.getLogger().info(String.format(DOWNLOADED_RESTART, downloadedVersion));
CloseableResult result = plugin.getPluginManager().reloadPlugin(ServerUtilsApp.getPlatformPlugin());
CloseableResult result = plugin.getPluginManager().reloadPlugin((Object)ServerUtilsApp.getPlatformPlugin());
plugin.getLogger().info(String.format(UPGRADE_SUCCESS, downloadedVersion));
result.tryClose();
} else {