From 49cd8baa27fdbf65872a6e14f96784b9c373eade Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 23 Feb 2020 17:30:32 +0100 Subject: [PATCH 1/2] 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); } } From 9b1a035e305e841ca14e403e4c67bbd605eaa201 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 23 Feb 2020 19:55:24 +0100 Subject: [PATCH 2/2] Do not kick any added players on /p deny * --- .../intellectualsites/plotsquared/plot/commands/Deny.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 fc0ea61dc..44e3ec3f6 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 @@ -75,7 +75,7 @@ import java.util.UUID; } else { for (PlotPlayer plotPlayer : plot.getPlayersInPlot()) { // Ignore plot-owners - if (plot.isOwner(plotPlayer.getUUID())) { + if (plot.isAdded(plotPlayer.getUUID())) { continue; } handleKick(plotPlayer, plot);