From 29615999b9840348fbac04420c1e1b9a9bd93be8 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sun, 14 Dec 2014 01:39:11 +1100 Subject: [PATCH] *and must be owner --- .../java/com/intellectualcrafters/plot/commands/Delete.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Delete.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Delete.java index 1846eef0b..4e9034963 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Delete.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Delete.java @@ -50,7 +50,7 @@ public class Delete extends SubCommand { } assert plot != null; final PlotWorld pWorld = PlotMain.getWorldSettings(plot.getWorld()); - if (PlotMain.useEconomy && pWorld.USE_ECONOMY && plot!=null && plot.hasOwner()) { + if (PlotMain.useEconomy && pWorld.USE_ECONOMY && plot!=null && plot.hasOwner() && plot.getOwner().equals(plr.getUniqueId())) { final double c = pWorld.SELL_PRICE; if (c > 0d) { final Economy economy = PlotMain.economy;