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:
parent
f728c3e6bb
commit
584ce8be4d
5 changed files with 53 additions and 16 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue