From 5f7411114e0d51c7359286a39e2f40732b0d3223 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Sun, 19 Sep 2021 21:42:53 +0200 Subject: [PATCH] Fixes #1310 --- .../extension/factory/parser/DefaultBlockParser.java | 5 ++++- worldedit-core/src/main/resources/lang/strings.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/DefaultBlockParser.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/DefaultBlockParser.java index dcd31844a..3b77fee0e 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/DefaultBlockParser.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/DefaultBlockParser.java @@ -501,7 +501,10 @@ public class DefaultBlockParser extends InputParser { CompoundTag nbt = holder.getNbtData(); if (nbt != null) { if (!actor.hasPermission("worldedit.anyblock.nbt")) { - throw new DisallowedUsageException(Caption.of("fawe.error.nbt.forbidden")); + throw new DisallowedUsageException(Caption.of( + "fawe.error.nbt.forbidden", + TextComponent.of("worldedit.anyblock.nbt") + )); } } } diff --git a/worldedit-core/src/main/resources/lang/strings.json b/worldedit-core/src/main/resources/lang/strings.json index ebe6b1b8d..ae1d39c6d 100644 --- a/worldedit-core/src/main/resources/lang/strings.json +++ b/worldedit-core/src/main/resources/lang/strings.json @@ -109,7 +109,7 @@ "fawe.error.parser.invalid-data": "Invalid data: {0}", "fawe.error.unsupported": "Unsupported!", "fawe.error.invalid-block-type": "Does not match a valid block type: {0}", - "fawe.error.nbt.forbidden": "You are not allowed to use nbt.", + "fawe.error.nbt.forbidden": "You are not allowed to use nbt. Lacking permission: {0}", "fawe.error.invalid-arguments": "Invalid amount of arguments. Expected: {0}", "fawe.error.unrecognised-tag": "Unrecognised tag: {0} {1}", "fawe.error.unknown-block-tag": "Unknown block tag: {0}",