mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-09 14:03:22 +00:00
Fixed plot auto algorithms and
also made some performance improvements
This commit is contained in:
parent
13a2d4234b
commit
f60bac0e0e
5 changed files with 83 additions and 33 deletions
|
@ -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.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue