Fixed plot auto algorithms and

also made some performance improvements
This commit is contained in:
boy0001 2014-10-29 17:18:17 +11:00
parent 13a2d4234b
commit f60bac0e0e
5 changed files with 83 additions and 33 deletions

View file

@ -58,6 +58,9 @@ public class Delete extends SubCommand {
if (result) {
plot.clear(plr);
DBFunc.delete(plr.getWorld().getName(), plot);
if (Math.abs(plot.id.x)<=Math.abs(Auto.lastPlot.x) && Math.abs(plot.id.y)<=Math.abs(Auto.lastPlot.y)) {
Auto.lastPlot = plot.id;
}
}
else {
PlayerFunctions.sendMessage(plr, "Plot clearing has been denied.");