Work on plugin disable hack

This commit is contained in:
fullwall 2021-07-16 17:25:04 +08:00
parent d5434b845e
commit bc3df49775
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}