mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-11-22 22:38:46 +00:00
Update...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
0dd488bd15
commit
e661249388
@ -227,6 +227,7 @@ public class PluginsManager {
|
|||||||
Field lookupNamesField = Bukkit.getPluginManager().getClass().getDeclaredField("lookupNames");
|
Field lookupNamesField = Bukkit.getPluginManager().getClass().getDeclaredField("lookupNames");
|
||||||
lookupNamesField.setAccessible(true);
|
lookupNamesField.setAccessible(true);
|
||||||
names = (Map<String, Plugin>) lookupNamesField.get(pluginManager);
|
names = (Map<String, Plugin>) lookupNamesField.get(pluginManager);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Field listenersField = Bukkit.getPluginManager().getClass().getDeclaredField("listeners");
|
Field listenersField = Bukkit.getPluginManager().getClass().getDeclaredField("listeners");
|
||||||
listenersField.setAccessible(true);
|
listenersField.setAccessible(true);
|
||||||
@ -283,6 +284,7 @@ public class PluginsManager {
|
|||||||
if ((cl instanceof URLClassLoader)) {
|
if ((cl instanceof URLClassLoader)) {
|
||||||
try {
|
try {
|
||||||
((URLClassLoader) cl).close();
|
((URLClassLoader) cl).close();
|
||||||
|
cl = null;
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user