From 5926a90cec2e5347ccd4c5c4f000d8b0b1d5e340 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sun, 14 Dec 2014 01:38:14 +1100 Subject: [PATCH] plot delete + econ --- .../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 49e62971c..1846eef0b 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) { + if (PlotMain.useEconomy && pWorld.USE_ECONOMY && plot!=null && plot.hasOwner()) { final double c = pWorld.SELL_PRICE; if (c > 0d) { final Economy economy = PlotMain.economy;