feat: Allow admin done permission to override requiring plot complexity calculation (#4267)

Co-authored-by: MrJoshuaT <josh@jmt.me>
This commit is contained in:
MrJoshuaT 2023-12-16 21:04:11 +00:00 committed by GitHub
parent d851e27aed
commit c8b4a2fa39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public class Done extends SubCommand {
TagResolver.resolver("plot", Tag.inserting(Component.text(plot.getId().toString())))
);
final Settings.Auto_Clear doneRequirements = Settings.AUTO_CLEAR.get("done");
if (PlotSquared.platform().expireManager() == null || doneRequirements == null) {
if (PlotSquared.platform().expireManager() == null || doneRequirements == null || player.hasPermission(Permission.PERMISSION_ADMIN_COMMAND_DONE)) {
finish(plot, player, true);
plot.removeRunning();
} else {