From dadab425757ef9ec39edf9f67ed6ba27c9312d8a Mon Sep 17 00:00:00 2001 From: boy0001 Date: Mon, 2 Mar 2015 22:55:31 +1100 Subject: [PATCH] Fixed purge --- .../main/java/com/intellectualcrafters/plot/commands/Purge.java | 2 +- .../java/com/intellectualcrafters/plot/database/SQLManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Purge.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Purge.java index b670b528c..2b4bd8264 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Purge.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Purge.java @@ -91,7 +91,7 @@ public class Purge extends SubCommand { MainUtil.sendMessage(plr, C.PURGE_SYNTAX); return false; } - final String worldname = args[0]; + final String worldname = args[1]; if (!BlockManager.manager.isWorld(worldname) || !PlotSquared.isPlotWorld(worldname)) { MainUtil.sendMessage(plr, "INVALID WORLD"); return false; diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java index 08470ab63..b7d82a3a2 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java @@ -899,7 +899,7 @@ public class SQLManager implements AbstractDB { @Override public void purge(final String world, final Set plots) { for (final PlotId id : plots) { - PlotSquared.removePlot(world, id, true); + PlotSquared.removePlot(world, new PlotId(id.x, id.y), true); } PreparedStatement stmt; try {