mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-06 12:33:08 +00:00
plot condensing/purge and command confirmation bypass
This commit is contained in:
parent
37e638acad
commit
debbb50e1d
7 changed files with 32 additions and 17 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue