mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-28 13:45:36 +01:00
I should probably have a perm for that
This commit is contained in:
parent
ea637dbbfd
commit
f6db2cf7d3
@ -322,6 +322,9 @@ public class DefaultBlockParser extends InputParser<BaseBlock> {
|
||||
try {
|
||||
CompoundTag nbt = JSON2NBT.getTagFromJson(joined);
|
||||
if (nbt != null) {
|
||||
if (context.isRestricted() && actor != null && !actor.hasPermission("worldedit.anyblock")) {
|
||||
throw new DisallowedUsageException("You are not allowed to nbt'");
|
||||
}
|
||||
return new BaseBlock(blockId, data, nbt);
|
||||
}
|
||||
} catch (NBTException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user