Skip to content

Commit

Permalink
feat: Allow admin done permission to override requiring plot complexi…
Browse files Browse the repository at this point in the history
…ty calculation
  • Loading branch information
MrJoshuaT committed Dec 12, 2023
1 parent 4a45729 commit c17fb17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/src/main/java/com/plotsquared/core/command/Done.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public boolean onCommand(final PlotPlayer<?> player, String[] args) {
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 (doneRequirements == null || player.hasPermission(Permission.PERMISSION_ADMIN_COMMAND_DONE)) {
finish(plot, player, true);
plot.removeRunning();
} else {
Expand Down

0 comments on commit c17fb17

Please sign in to comment.