From a83b51eb12ef5c208dd5927e854cdd6bfe2c58ba Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 17 May 2018 15:21:53 +1000 Subject: [PATCH] Fixes #1951 --- .../java/com/plotsquared/bukkit/listeners/PlayerEvents.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java index e3083dd5e..42e24cad8 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java @@ -2476,7 +2476,7 @@ public class PlayerEvents extends PlotListener implements Listener { } } return true; - } else if (dplot != null && (!(dplot.equals(vplot)) || (vplot != null && dplot.isOwner(vplot.owner)))) { + } else if (dplot != null && (!(dplot.equals(vplot)) || (vplot != null && Objects.equals(dplot.owner, vplot.owner)))) { return false; } // player is null