From 0fca78c61ab3ea95355de7d9825649ec1390a780 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Mon, 1 Dec 2014 09:38:49 +1100 Subject: [PATCH] fixes owner bug --- .../java/com/intellectualcrafters/plot/commands/Helpers.java | 2 +- .../java/com/intellectualcrafters/plot/commands/Trusted.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Helpers.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Helpers.java index 1705f75c3..aab5e8d8f 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Helpers.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Helpers.java @@ -50,7 +50,7 @@ public class Helpers extends SubCommand { return true; } final Plot plot = PlayerFunctions.getCurrentPlot(plr); - if ((plot.owner == null) || !plot.hasRights(plr)) { + if ((plot.owner == null) || !plot.getOwner().equals(plr)) { PlayerFunctions.sendMessage(plr, C.NO_PLOT_PERMS); return true; } diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Trusted.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Trusted.java index 08685d823..02686eb0c 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Trusted.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Trusted.java @@ -50,7 +50,7 @@ public class Trusted extends SubCommand { return true; } final Plot plot = PlayerFunctions.getCurrentPlot(plr); - if ((plot.owner == null) || !plot.hasRights(plr)) { + if ((plot.owner == null) || !plot.getOwner().equals(plr)) { PlayerFunctions.sendMessage(plr, C.NO_PLOT_PERMS); return true; }