Skip to content

Commit

Permalink
Fix bad move to adventure
Browse files Browse the repository at this point in the history
  • Loading branch information
dordsor21 committed Sep 18, 2021
1 parent 086dac2 commit c37b13d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Core/src/main/java/com/plotsquared/core/command/Unlink.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public boolean onCommand(final PlotPlayer<?> player, String[] args) {
}
if (!plot.isMerged()) {
player.sendMessage(TranslatableCaption.of("merge.unlink_impossible"));
return false;
}
final boolean createRoad;
if (args.length != 0) {
Expand Down Expand Up @@ -100,6 +101,7 @@ public boolean onCommand(final PlotPlayer<?> player, String[] args) {
if (!force && !plot.isOwner(player.getUUID()) && !Permissions
.hasPermission(player, Permission.PERMISSION_ADMIN_COMMAND_UNLINK)) {
player.sendMessage(TranslatableCaption.of("permission.no_plot_perms"));
return true;
}
Runnable runnable = () -> {
if (!plot.getPlotModificationManager().unlinkPlot(createRoad, createRoad)) {
Expand Down

0 comments on commit c37b13d

Please sign in to comment.