plot condensing/purge and command confirmation bypass

This commit is contained in:
boy0001 2015-03-08 12:11:02 +11:00
parent 37e638acad
commit debbb50e1d
7 changed files with 32 additions and 17 deletions

View file

@ -66,7 +66,7 @@ public class Clear extends SubCommand {
PlotSquared.log("Plot " + plot.getId().toString() + " cleared.");
}
};
if (Settings.CONFIRM_CLEAR) {
if (Settings.CONFIRM_CLEAR && !(Permissions.hasPermission(plr, "plots.confirm.bypass"))) {
CmdConfirm.addPending(plr, "/plot clear " + id, runnable);
}
else {
@ -133,7 +133,7 @@ public class Clear extends SubCommand {
}
}
};
if (Settings.CONFIRM_CLEAR) {
if (Settings.CONFIRM_CLEAR && !(Permissions.hasPermission(plr, "plots.confirm.bypass"))) {
CmdConfirm.addPending(plr, "/plot clear " + plot.id, runnable);
}
else {