From 5e88cabb4b7d55c8f5f8f145f9bffea73c8e900b Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Mon, 14 Dec 2020 14:32:34 +0000 Subject: [PATCH] compare UUID to UUID, not UUIDMapping fix PS-182 --- Core/src/main/java/com/plotsquared/core/command/Deny.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Deny.java b/Core/src/main/java/com/plotsquared/core/command/Deny.java index e1b2536f1..858b3bf78 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Deny.java +++ b/Core/src/main/java/com/plotsquared/core/command/Deny.java @@ -95,7 +95,7 @@ public class Deny extends SubCommand { } plot.addDenied(uuidMapping.getUuid()); PlotSquared.get().getEventDispatcher().callDenied(player, plot, uuidMapping.getUuid(), true); - if (!uuidMapping.equals(DBFunc.EVERYONE)) { + if (!uuidMapping.getUuid().equals(DBFunc.EVERYONE)) { handleKick(PlotSquared.imp().getPlayerManager().getPlayerIfExists(uuidMapping.getUuid()), plot); } else { for (PlotPlayer plotPlayer : plot.getPlayersInPlot()) {