mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-03-13 07:09:09 +01:00
Work on plugin disable hack
This commit is contained in:
parent
d5434b845e
commit
bc3df49775
@ -569,7 +569,7 @@ public class EventListen implements Listener {
|
||||
// plugin disable cycle
|
||||
PluginDescriptionFile file = event.getPlugin().getDescription();
|
||||
for (String plugin : Iterables.concat(file.getDepend(), file.getSoftDepend())) {
|
||||
if (plugin.equalsIgnoreCase("citizens")) {
|
||||
if (plugin.equalsIgnoreCase("citizens") && CitizensAPI.hasImplementation()) {
|
||||
CitizensAPI.getPlugin().onDisable();
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user