Fix channel error messages

This commit is contained in:
Draycia committed 2020-07-10 02:24:16 -07:00
1 parent 6fd35ebba0
commit 976ff99c85
1 file changed
+3 -3
@@ -78,11 +78,11 @@ public class CommandManager {
} else if (value.isNationChat() && !((NationChatChannel)value).isInNation(user)) {
throw new ConditionFailedException(simpleChat.getConfig().getString("language.nation-cannot-use"));
} else if (value.isAllianceChat() && !((AllianceChatChannel)value).isInTown(user)) {
throw new ConditionFailedException(simpleChat.getConfig().getString("alliance-cannot-use"));
throw new ConditionFailedException(simpleChat.getConfig().getString("language.alliance-cannot-use"));
} else if (value.isPartyChat() && !((PartyChatChannel)value).isInParty(user)) {
throw new ConditionFailedException(simpleChat.getConfig().getString("party-cannot-use"));
throw new ConditionFailedException(simpleChat.getConfig().getString("language.party-cannot-use"));
} else {
throw new ConditionFailedException(simpleChat.getConfig().getString("cannot-use-channel"));
throw new ConditionFailedException(simpleChat.getConfig().getString("language.cannot-use-channel"));
}
}
});