Dieser Commit ist enthalten in:
NotMyFault 2021-09-19 21:42:53 +02:00
Ursprung 8cc93a2255
Commit 5f7411114e
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C
2 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -501,7 +501,10 @@ public class DefaultBlockParser extends InputParser<BaseBlock> {
CompoundTag nbt = holder.getNbtData(); CompoundTag nbt = holder.getNbtData();
if (nbt != null) { if (nbt != null) {
if (!actor.hasPermission("worldedit.anyblock.nbt")) { 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")
));
} }
} }
} }

Datei anzeigen

@ -109,7 +109,7 @@
"fawe.error.parser.invalid-data": "Invalid data: {0}", "fawe.error.parser.invalid-data": "Invalid data: {0}",
"fawe.error.unsupported": "Unsupported!", "fawe.error.unsupported": "Unsupported!",
"fawe.error.invalid-block-type": "Does not match a valid block type: {0}", "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.invalid-arguments": "Invalid amount of arguments. Expected: {0}",
"fawe.error.unrecognised-tag": "Unrecognised tag: {0} {1}", "fawe.error.unrecognised-tag": "Unrecognised tag: {0} {1}",
"fawe.error.unknown-block-tag": "Unknown block tag: {0}", "fawe.error.unknown-block-tag": "Unknown block tag: {0}",