mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-28 21:56:33 +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 {
|
try {
|
||||||
CompoundTag nbt = JSON2NBT.getTagFromJson(joined);
|
CompoundTag nbt = JSON2NBT.getTagFromJson(joined);
|
||||||
if (nbt != null) {
|
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);
|
return new BaseBlock(blockId, data, nbt);
|
||||||
}
|
}
|
||||||
} catch (NBTException e) {
|
} catch (NBTException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user