Message about missing permissions on certain commands no longer hard coded

This commit is contained in:
nossr50 2021-01-21 14:34:58 -08:00
parent 1b5dd86796
commit 4b4643f510

View File

@ -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"));
}
}