Inverse on/off for gc toggle cus for some reason it's inversed and this is a lazy fix
This commit is contained in:
parent
6a947fac9c
commit
01be60ed23
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user