Fix bad move to adventure

This commit is contained in:
dordsor21 2021-09-18 21:54:22 +01:00
parent 086dac2ea4
commit c37b13dcb3
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -73,6 +73,7 @@ public class Unlink extends SubCommand {
}
if (!plot.isMerged()) {
player.sendMessage(TranslatableCaption.of("merge.unlink_impossible"));
return false;
}
final boolean createRoad;
if (args.length != 0) {
@ -100,6 +101,7 @@ public class Unlink extends SubCommand {
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)) {