clearPlugins() and clearCommands() for PluginManager and CommandMap respectively

This commit is contained in:
Dinnerbone
2011-01-28 14:18:24 +00:00
parent 7989fe0a20
commit d67110aecf
6 changed files with 40 additions and 0 deletions

View File

@@ -188,6 +188,15 @@ public final class SimplePluginManager implements PluginManager {
}
}
public void clearPlugins() {
synchronized (this) {
disablePlugins();
plugins.clear();
lookupNames.clear();
listeners.clear();
}
}
/**
* Calls a player related event with the given details
*