return CommandResult.success();
} else if (successes > 0) {
Sponge.getGame().getEventManager().post(new FGUpdateEvent() {
@Override
public Cause getCause() {
<BUG>return FoxGuardMain.PLUGIN_CAUSE;
}</BUG>
});
source.sendMessage(Text.of(TextColors.GREEN, "Successfully " + (this.enableState ? "enabled" : "disabled") + " regions with "
+ successes + " successes" + (failures > 0 ? " and " + failures + " failures!" : "!")));

return CommandResult.success();
} else if (successes > 0) {
Sponge.getGame().getEventManager().post(new FGUpdateEvent() {
@Override
public Cause getCause() {
return FoxGuardMain.getCause();
}
});
source.sendMessage(Text.of(TextColors.GREEN, "Successfully " + (this.enableState ? "enabled" : "disabled") + " regions with "
+ successes + " successes" + (failures > 0 ? " and " + failures + " failures!" : "!")));
