mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 05:36:45 +01:00
fixed wall block set twice on claim under certain curcumstances
This commit is contained in:
parent
84e17dc798
commit
7b85a28fb4
@ -81,7 +81,7 @@ public class Claim extends SubCommand {
|
|||||||
}
|
}
|
||||||
if (world instanceof HybridPlotWorld) {
|
if (world instanceof HybridPlotWorld) {
|
||||||
final HybridPlotWorld pW = (HybridPlotWorld) world;
|
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);
|
PlotMain.getPlotManager(plot.getWorld()).setWall(plot.getWorld(), world, plot.getId(), pW.CLAIMED_WALL_BLOCK);
|
||||||
if (PlotHelper.canSetFast) {
|
if (PlotHelper.canSetFast) {
|
||||||
SetBlockFast.update(player);
|
SetBlockFast.update(player);
|
||||||
|
@ -202,7 +202,7 @@ public class FlagCmd extends SubCommand {
|
|||||||
PlayerFunctions.sendMessage(player, C.NO_PERMISSION, "plots.flag.list");
|
PlayerFunctions.sendMessage(player, C.NO_PERMISSION, "plots.flag.list");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (args.length != 3) {
|
if (args.length != 1) {
|
||||||
PlayerFunctions.sendMessage(player, C.COMMAND_SYNTAX, "/plot flag list");
|
PlayerFunctions.sendMessage(player, C.COMMAND_SYNTAX, "/plot flag list");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user