Fix BungeeCord multi plugin management
This commit is contained in:
parent
ff1bfc2514
commit
94664286e5
5 changed files with 32 additions and 77 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue