mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-06 04:23:26 +00:00
cmd
This commit is contained in:
parent
50c80ba5c4
commit
1eb0ba47b4
30 changed files with 37 additions and 69 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue