mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Fix bad move to adventure
This commit is contained in:
parent
086dac2ea4
commit
c37b13dcb3
@ -73,6 +73,7 @@ public class Unlink extends SubCommand {
|
|||||||
}
|
}
|
||||||
if (!plot.isMerged()) {
|
if (!plot.isMerged()) {
|
||||||
player.sendMessage(TranslatableCaption.of("merge.unlink_impossible"));
|
player.sendMessage(TranslatableCaption.of("merge.unlink_impossible"));
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
final boolean createRoad;
|
final boolean createRoad;
|
||||||
if (args.length != 0) {
|
if (args.length != 0) {
|
||||||
@ -100,6 +101,7 @@ public class Unlink extends SubCommand {
|
|||||||
if (!force && !plot.isOwner(player.getUUID()) && !Permissions
|
if (!force && !plot.isOwner(player.getUUID()) && !Permissions
|
||||||
.hasPermission(player, Permission.PERMISSION_ADMIN_COMMAND_UNLINK)) {
|
.hasPermission(player, Permission.PERMISSION_ADMIN_COMMAND_UNLINK)) {
|
||||||
player.sendMessage(TranslatableCaption.of("permission.no_plot_perms"));
|
player.sendMessage(TranslatableCaption.of("permission.no_plot_perms"));
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
Runnable runnable = () -> {
|
Runnable runnable = () -> {
|
||||||
if (!plot.getPlotModificationManager().unlinkPlot(createRoad, createRoad)) {
|
if (!plot.getPlotModificationManager().unlinkPlot(createRoad, createRoad)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user