Move language stuff to its own file

This commit is contained in:
Draycia committed 2020-08-21 22:31:36 -07:00
1 parent 69375bbd33
commit 7124585602
17 files changed
+93 -73

No files matched your search

@@ -61,7 +61,7 @@ public class CommandManager {
commandManager.getCommandConditions().addCondition(ChatChannel.class,"canuse", (context, execution, value) -> {
if (value == null) {
throw new ConditionFailedException(carbonChat.getConfig().getString("language.cannot-use-channel"));
throw new ConditionFailedException(carbonChat.getLanguage().getString("cannot-use-channel"));
}
ChatUser user = carbonChat.getUserService().wrap(context.getIssuer().getPlayer());
@@ -73,7 +73,7 @@ public class CommandManager {
commandManager.getCommandConditions().addCondition(ChatChannel.class,"exists", (context, execution, value) -> {
if (value == null) {
throw new ConditionFailedException(carbonChat.getConfig().getString("language.cannot-use-channel"));
throw new ConditionFailedException(carbonChat.getLanguage().getString("cannot-use-channel"));
}
});