mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Town and Nation leave detection
This commit is contained in:
1 parent
97b4b55722
commit
986fd0f271
8 files changed
+91
-43
No files matched your search
@@ -77,7 +77,7 @@ public class CommandManager {
|
||||
throw new ConditionFailedException(simpleChat.getConfig().getString("language.town-cannot-use"));
|
||||
} 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)) {
|
||||
} else if (value.isAllianceChat() && !((AllianceChatChannel)value).isInNation(user)) {
|
||||
throw new ConditionFailedException(simpleChat.getConfig().getString("language.alliance-cannot-use"));
|
||||
} else if (value.isPartyChat() && !((PartyChatChannel)value).isInParty(user)) {
|
||||
throw new ConditionFailedException(simpleChat.getConfig().getString("language.party-cannot-use"));
|
||||
@@ -107,7 +107,6 @@ public class CommandManager {
|
||||
manager.registerCommand(new MessageCommand(simpleChat));
|
||||
manager.registerCommand(new ReplyCommand(simpleChat));
|
||||
manager.registerCommand(new MuteCommand(simpleChat));
|
||||
manager.registerCommand(new ChannelColorCommand(simpleChat));
|
||||
manager.registerCommand(new SetColorCommand(simpleChat));
|
||||
manager.registerCommand(new SpyChannelCommand(simpleChat));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user