clean merge up

This commit is contained in:
dordsor21 2018-12-28 17:03:00 +00:00
parent 6292bff7c9
commit 750be6c5fe

View File

@ -55,7 +55,7 @@ public class Merge extends SubCommand {
MainUtil.sendMessage(player, C.NO_PLOT_PERMS);
return false;
} else {
uuid = plot.owner;
uuid = plot.guessOwner();
}
}
final PlotArea plotArea = plot.getArea();
@ -155,8 +155,7 @@ public class Merge extends SubCommand {
}
isOnline = true;
final int dir = direction;
Runnable run = new Runnable() {
@Override public void run() {
Runnable run = () -> {
MainUtil.sendMessage(accepter, C.MERGE_ACCEPTED);
plot.autoMerge(dir, maxSize - size, owner, terrain);
PlotPlayer plotPlayer = UUIDHandler.getPlayer(player.getUUID());
@ -173,7 +172,6 @@ public class Merge extends SubCommand {
sendMessage(player, C.REMOVED_BALANCE, String.valueOf(price));
}
MainUtil.sendMessage(player, C.SUCCESS_MERGE);
}
};
if (hasConfirmation(player)) {
CmdConfirm.addPending(accepter,