From 7b85a28fb47ade3856422d06f2bba57390b06e65 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Mon, 2 Feb 2015 15:03:56 +1100 Subject: [PATCH] fixed wall block set twice on claim under certain curcumstances --- .../main/java/com/intellectualcrafters/plot/commands/Claim.java | 2 +- .../java/com/intellectualcrafters/plot/commands/FlagCmd.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Claim.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Claim.java index 545b3d91c..aa5e4729d 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Claim.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Claim.java @@ -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); diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/FlagCmd.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/FlagCmd.java index 7965f5912..9ca0721ec 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/FlagCmd.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/FlagCmd.java @@ -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; }