From 4b4643f510df45686287e085c4e3666832164219 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 21 Jan 2021 14:34:58 -0800 Subject: [PATCH] Message about missing permissions on certain commands no longer hard coded --- src/main/java/com/gmail/nossr50/commands/CommandManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/commands/CommandManager.java b/src/main/java/com/gmail/nossr50/commands/CommandManager.java index 1bf350b08..ea72fc2f9 100644 --- a/src/main/java/com/gmail/nossr50/commands/CommandManager.java +++ b/src/main/java/com/gmail/nossr50/commands/CommandManager.java @@ -85,7 +85,7 @@ public class CommandManager { private void validatePermission(@NotNull String permissionNode, @NotNull Permissible permissible) { if(!permissible.hasPermission(permissionNode)) { - throw new ConditionFailedException("You do not have the appropriate permission to use this command."); + throw new ConditionFailedException(LocaleLoader.getString("mcMMO.NoPermission")); } }