mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Fixed purge
This commit is contained in:
parent
b20f13bc58
commit
dadab42575
@ -91,7 +91,7 @@ public class Purge extends SubCommand {
|
|||||||
MainUtil.sendMessage(plr, C.PURGE_SYNTAX);
|
MainUtil.sendMessage(plr, C.PURGE_SYNTAX);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
final String worldname = args[0];
|
final String worldname = args[1];
|
||||||
if (!BlockManager.manager.isWorld(worldname) || !PlotSquared.isPlotWorld(worldname)) {
|
if (!BlockManager.manager.isWorld(worldname) || !PlotSquared.isPlotWorld(worldname)) {
|
||||||
MainUtil.sendMessage(plr, "INVALID WORLD");
|
MainUtil.sendMessage(plr, "INVALID WORLD");
|
||||||
return false;
|
return false;
|
||||||
|
@ -899,7 +899,7 @@ public class SQLManager implements AbstractDB {
|
|||||||
@Override
|
@Override
|
||||||
public void purge(final String world, final Set<PlotId> plots) {
|
public void purge(final String world, final Set<PlotId> plots) {
|
||||||
for (final PlotId id : plots) {
|
for (final PlotId id : plots) {
|
||||||
PlotSquared.removePlot(world, id, true);
|
PlotSquared.removePlot(world, new PlotId(id.x, id.y), true);
|
||||||
}
|
}
|
||||||
PreparedStatement stmt;
|
PreparedStatement stmt;
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user