Fix BungeeCord multi plugin management

This commit is contained in:
Frank van der Heijden 2021-07-30 14:19:23 +02:00
parent ff1bfc2514
commit 94664286e5
No known key found for this signature in database
GPG key ID: B808721C2DD5B5B8
5 changed files with 32 additions and 77 deletions

View file

@ -60,11 +60,7 @@ public class CloseablePluginResults<T> extends PluginResults<T> implements Close
*/
public void tryClose() {
try {
for (PluginResult<T> pluginResult : this) {
if (pluginResult instanceof CloseablePluginResult) {
((CloseablePluginResult<T>) pluginResult).close();
}
}
close();
} catch (IOException ex) {
ex.printStackTrace();
}
@ -77,5 +73,6 @@ public class CloseablePluginResults<T> extends PluginResults<T> implements Close
((CloseablePluginResult<T>) pluginResult).close();
}
}
System.gc();
}
}