This commit is contained in:
boy0001 2015-02-21 23:01:15 +11:00
parent 50c80ba5c4
commit 1eb0ba47b4
30 changed files with 37 additions and 69 deletions

View file

@ -66,7 +66,7 @@ public class Clear extends SubCommand {
if (!BukkitPlayerFunctions.isInPlot(plr)) {
return sendMessage(plr, C.NOT_IN_PLOT);
}
final Plot plot = BukkitPlayerFunctions.getCurrentPlot(plr);
final Plot plot = MainUtil.getPlot(loc);
if (!BukkitPlayerFunctions.getTopPlot(plr.getWorld(), plot).equals(BukkitPlayerFunctions.getBottomPlot(plr.getWorld(), plot))) {
return sendMessage(plr, C.UNLINK_REQUIRED);
}