mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-06 20:42:55 +00:00
debugclear
This commit is contained in:
parent
bfd4a77c66
commit
528581b63b
6 changed files with 25 additions and 31 deletions
|
@ -67,7 +67,7 @@ public class Clear extends SubCommand {
|
|||
if (plot == null) {
|
||||
return sendMessage(plr, C.NOT_IN_PLOT);
|
||||
}
|
||||
if (!MainUtil.getTopPlot(loc.getWorld(), plot).equals(MainUtil.getBottomPlot( plot))) {
|
||||
if (!MainUtil.getTopPlot(plot).equals(MainUtil.getBottomPlot( plot))) {
|
||||
return sendMessage(plr, C.UNLINK_REQUIRED);
|
||||
}
|
||||
if (((plot == null) || !plot.hasOwner() || !plot.getOwner().equals(UUIDHandler.getUUID(plr))) && !Permissions.hasPermission(plr, "plots.admin.command.clear")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue