From 3d8d75170d6263934b0b2dbc55464cd2f597763f Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 31 Jul 2018 14:28:22 +1000 Subject: [PATCH] Check admin for setowner null --- .../java/com/intellectualcrafters/plot/commands/Owner.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Owner.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Owner.java index 7701de3ec..f73cb5c61 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Owner.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Owner.java @@ -42,6 +42,9 @@ public class Owner extends SetCommand { } if (uuid == null || value.equalsIgnoreCase("-")) { if (value.equalsIgnoreCase("none") || value.equalsIgnoreCase("null") || value.equalsIgnoreCase("-")) { + if (!Permissions.hasPermission(player, C.PERMISSION_ADMIN_COMMAND_SETOWNER.s(), true)) { + return false; + } Set connected = plot.getConnectedPlots(); plot.unlinkPlot(false, false); for (Plot current : connected) {