mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Fixed plot deletion and unable to locate sign messages
This commit is contained in:
parent
9b20e096f0
commit
625d19b5d0
@ -204,11 +204,7 @@ public class PlotSquared {
|
||||
}
|
||||
|
||||
public static boolean removePlot(final String world, final PlotId id, final boolean callEvent) {
|
||||
if (callEvent) {
|
||||
if (!IMP.callRemovePlot(world, id)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// FIXME plot remove event
|
||||
plots.get(world).remove(id);
|
||||
if (MainUtil.lastPlot.containsKey(world)) {
|
||||
final PlotId last = MainUtil.lastPlot.get(world);
|
||||
|
@ -106,7 +106,6 @@ public class Claim extends SubCommand {
|
||||
if (PlotSquared.economy != null && world.USE_ECONOMY) {
|
||||
final double cost = world.PLOT_PRICE;
|
||||
if (cost > 0d) {
|
||||
final Economy economy = PlotSquared.economy;
|
||||
if (EconHandler.getBalance(plr) < cost) {
|
||||
return sendMessage(plr, C.CANNOT_AFFORD_PLOT, "" + cost);
|
||||
}
|
||||
@ -124,6 +123,6 @@ public class Claim extends SubCommand {
|
||||
}
|
||||
}
|
||||
}
|
||||
return !claimPlot(plr, plot, false, schematic, false) || sendMessage(plr, C.PLOT_NOT_CLAIMED);
|
||||
return claimPlot(plr, plot, false, schematic, false) || sendMessage(plr, C.PLOT_NOT_CLAIMED);
|
||||
}
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ public class Delete extends SubCommand {
|
||||
final boolean result = PlotSquared.removePlot(loc.getWorld(), plot.id, true);
|
||||
final long start = System.currentTimeMillis();
|
||||
if (result) {
|
||||
boolean result2 = MainUtil.clearAsPlayer(plot, false, new Runnable() {
|
||||
boolean result2 = MainUtil.clearAsPlayer(plot, true, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
MainUtil.sendMessage(plr, C.CLEARING_DONE, "" + (System.currentTimeMillis() - start));
|
||||
|
@ -83,6 +83,9 @@ public class SetBlockFast_1_8 extends SetBlockManager {
|
||||
case 130:
|
||||
case 146:
|
||||
case 27:
|
||||
case 63:
|
||||
case 68:
|
||||
case 313:
|
||||
case 28:
|
||||
case 66:
|
||||
case 157:
|
||||
|
Loading…
Reference in New Issue
Block a user