mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Split up worldedit.anyblock
and worldedit.anyblock.nbt
for specific nbt operations
This commit is contained in:
parent
391869cf3a
commit
7af06a533b
@ -470,7 +470,7 @@ 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")) {
|
if (!actor.hasPermission("worldedit.anyblock.nbt")) {
|
||||||
throw new DisallowedUsageException(Caption.of("fawe.error.nbt.forbidden"));
|
throw new DisallowedUsageException(Caption.of("fawe.error.nbt.forbidden"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user