From 49cd8baa27fdbf65872a6e14f96784b9c373eade Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 23 Feb 2020 17:30:32 +0100 Subject: [PATCH] Do not kick plot owners on "/p deny *" --- .../intellectualsites/plotsquared/plot/commands/Deny.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Deny.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Deny.java index b50e68762..fc0ea61dc 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Deny.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Deny.java @@ -74,6 +74,10 @@ import java.util.UUID; handleKick(UUIDHandler.getPlayer(uuid), plot); } else { for (PlotPlayer plotPlayer : plot.getPlayersInPlot()) { + // Ignore plot-owners + if (plot.isOwner(plotPlayer.getUUID())) { + continue; + } handleKick(plotPlayer, plot); } }