Fixed purge

This commit is contained in:
boy0001 2015-03-02 22:55:31 +11:00
parent b20f13bc58
commit dadab42575
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -899,7 +899,7 @@ public class SQLManager implements AbstractDB {
@Override
public void purge(final String world, final Set<PlotId> plots) {
for (final PlotId id : plots) {
PlotSquared.removePlot(world, id, true);
PlotSquared.removePlot(world, new PlotId(id.x, id.y), true);
}
PreparedStatement stmt;
try {