This commit is contained in:
boy0001 2015-02-21 22:24:46 +11:00
parent 83f7aa544d
commit cf1ebdb6c8
48 changed files with 422 additions and 422 deletions

View file

@ -47,7 +47,7 @@ public class Delete extends SubCommand {
if (!BukkitPlayerFunctions.getTopPlot(plr.getWorld(), plot).equals(BukkitPlayerFunctions.getBottomPlot(plr.getWorld(), plot))) {
return !sendMessage(plr, C.UNLINK_REQUIRED);
}
if ((((plot == null) || !plot.hasOwner() || !plot.getOwner().equals(UUIDHandler.uuidWrapper.getUUID(plr)))) && !BukkitMain.hasPermission(plr, "plots.admin.command.delete")) {
if ((((plot == null) || !plot.hasOwner() || !plot.getOwner().equals(UUIDHandler.uuidWrapper.getUUID(plr)))) && !Permissions.hasPermission(plr, "plots.admin.command.delete")) {
return !sendMessage(plr, C.NO_PLOT_PERMS);
}
assert plot != null;
@ -65,7 +65,7 @@ public class Delete extends SubCommand {
plot.clear(plr, true);
DBFunc.delete(plr.getWorld().getName(), plot);
} else {
BukkitPlayerFunctions.sendMessage(plr, "Plot deletion has been denied.");
MainUtil.sendMessage(plr, "Plot deletion has been denied.");
}
return true;
}