Language and canUse improvements

This commit is contained in:
Draycia committed 2020-07-01 02:50:23 -07:00
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"));
}
});