From cdcab96d89fe55f526ce2b0138021b9133f78f38 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sat, 14 Mar 2015 00:29:58 +1100 Subject: [PATCH] Fix condense with no plots --- .../java/com/intellectualcrafters/plot/commands/Condense.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Condense.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Condense.java index 48dc09b63..77ba45daa 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Condense.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Condense.java @@ -94,6 +94,10 @@ public class Condense extends SubCommand { } start = Auto.getNextPlot(start, 1); } + if (free.size() == 0 || to_move.size() == 0) { + MainUtil.sendMessage(plr, "NO PLOTS FOUND"); + return false; + } MainUtil.move(worldname, to_move.get(0), free.get(0), new Runnable() { @Override public void run() {