Inverse on/off for gc toggle cus for some reason it's inversed and this is a lazy fix

This commit is contained in:
Teriuihi 2021-07-30 05:33:05 +02:00
parent 6a947fac9c
commit 01be60ed23

View File

@ -33,7 +33,7 @@ public class ToggleGlobalChat implements CommandExecutor {
//chatUser.toggleGc();
Utility.flipPermission(uuid, Config.GCPERMISSION);
//Queries.setGlobalChatState(chatUser.isGcOn(), chatUser.getUuid());
sender.sendMessage(MiniMessage.get().parse("You have turned globalchat " + (Utility.hasPermission(uuid, Config.GCPERMISSION) ? "<green>on." : "<red>off."))); // TODO load from config and minimessage
sender.sendMessage(MiniMessage.get().parse("You have turned globalchat " + (!Utility.hasPermission(uuid, Config.GCPERMISSION) ? "<green>on." : "<red>off."))); // TODO load from config and minimessage
}
}.runTaskAsynchronously(ChatPlugin.getInstance());
return false;