forked from SteamWar/SteamWar
Fix TestblockCommand permission check for schematic
This commit is contained in:
+4
@@ -105,6 +105,10 @@ public class TestblockCommand extends SWCommand {
|
||||
case 12258:
|
||||
if (node == null) {
|
||||
node = region.getRegionData().getTestblockSchematic();
|
||||
if (node != null && !node.accessibleByUser(SteamwarUser.get(bauServer.getOwner()))) {
|
||||
node = null;
|
||||
region.getRegionData().setTestblockSchematic(null);
|
||||
}
|
||||
} else {
|
||||
region.getRegionData().setTestblockSchematic(node);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user