fixed wall block set twice on claim under certain curcumstances

This commit is contained in:
boy0001 2015-02-02 15:03:56 +11:00
parent 84e17dc798
commit 7b85a28fb4
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ public class Claim extends SubCommand {
}
if (world instanceof HybridPlotWorld) {
final HybridPlotWorld pW = (HybridPlotWorld) world;
if (pW.CLAIMED_WALL_BLOCK != pW.WALL_BLOCK) {
if (!(pW.CLAIMED_WALL_BLOCK.equals(pW.WALL_BLOCK))) {
PlotMain.getPlotManager(plot.getWorld()).setWall(plot.getWorld(), world, plot.getId(), pW.CLAIMED_WALL_BLOCK);
if (PlotHelper.canSetFast) {
SetBlockFast.update(player);

View File

@ -202,7 +202,7 @@ public class FlagCmd extends SubCommand {
PlayerFunctions.sendMessage(player, C.NO_PERMISSION, "plots.flag.list");
return false;
}
if (args.length != 3) {
if (args.length != 1) {
PlayerFunctions.sendMessage(player, C.COMMAND_SYNTAX, "/plot flag list");
return false;
}