mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Fix channel error messages
This commit is contained in:
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"));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user