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
|
// plugin disable cycle
|
||||||
PluginDescriptionFile file = event.getPlugin().getDescription();
|
PluginDescriptionFile file = event.getPlugin().getDescription();
|
||||||
for (String plugin : Iterables.concat(file.getDepend(), file.getSoftDepend())) {
|
for (String plugin : Iterables.concat(file.getDepend(), file.getSoftDepend())) {
|
||||||
if (plugin.equalsIgnoreCase("citizens")) {
|
if (plugin.equalsIgnoreCase("citizens") && CitizensAPI.hasImplementation()) {
|
||||||
CitizensAPI.getPlugin().onDisable();
|
CitizensAPI.getPlugin().onDisable();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user