Split up worldedit.anyblock and worldedit.anyblock.nbt for specific nbt operations

This commit is contained in:
NotMyFault 2021-06-18 20:58:10 +02:00
parent 391869cf3a
commit 7af06a533b
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -470,7 +470,7 @@ public class DefaultBlockParser extends InputParser<BaseBlock> {
}
CompoundTag nbt = holder.getNbtData();
if (nbt != null) {
if (!actor.hasPermission("worldedit.anyblock")) {
if (!actor.hasPermission("worldedit.anyblock.nbt")) {
throw new DisallowedUsageException(Caption.of("fawe.error.nbt.forbidden"));
}
}