From 5f201c3e62f06984395906795cf36f72c6ca27ed Mon Sep 17 00:00:00 2001 From: Draycia Date: Sat, 11 Jul 2020 03:46:36 -0700 Subject: [PATCH] Fix AllianceChatChannel --- .../net/draycia/simplechat/commands/AliasedChannelCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/draycia/simplechat/commands/AliasedChannelCommand.java b/src/main/java/net/draycia/simplechat/commands/AliasedChannelCommand.java index 5c72e431..7ba8b708 100644 --- a/src/main/java/net/draycia/simplechat/commands/AliasedChannelCommand.java +++ b/src/main/java/net/draycia/simplechat/commands/AliasedChannelCommand.java @@ -35,7 +35,7 @@ public class AliasedChannelCommand extends BaseCommand { throw new ConditionFailedException(simpleChat.getConfig().getString("language.town-cannot-use")); } else if (chatChannel.isNationChat() && !((NationChatChannel)chatChannel).isInNation(user)) { throw new ConditionFailedException(simpleChat.getConfig().getString("language.nation-cannot-use")); - } else if (chatChannel.isAllianceChat() && !((AllianceChatChannel)chatChannel).isInTown(user)) { + } else if (chatChannel.isAllianceChat() && !((AllianceChatChannel)chatChannel).isInNation(user)) { throw new ConditionFailedException(simpleChat.getConfig().getString("alliance-cannot-use")); } else if (chatChannel.isPartyChat() && !((PartyChatChannel)chatChannel).isInParty(user)) { throw new ConditionFailedException(simpleChat.getConfig().getString("party-cannot-use"));