mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Language and canUse improvements
This commit is contained in:
1 parent
b6cca97104
commit
191eaa1b3a
8 files changed
+57
-9
No files matched your search
@@ -43,7 +43,7 @@ public class CommandManager {
|
||||
|
||||
manager.getCommandConditions().addCondition(ChatChannel.class,"canuse", (context, execution, value) -> {
|
||||
if (!value.canPlayerUse(context.getIssuer().getPlayer())) {
|
||||
throw new ConditionFailedException("You cannot use that channel!");
|
||||
throw new ConditionFailedException(simpleChat.getConfig().getString("language.cannot-use-channel"));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user