Fixed plot deletion and unable to locate sign messages

This commit is contained in:
boy0001 2015-02-23 11:58:47 +11:00
parent 9b20e096f0
commit 625d19b5d0
4 changed files with 6 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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