From ec8bdc9af6451bad958c7c81592cafbeded86b31 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Mon, 4 Jan 2021 19:23:31 +0000 Subject: [PATCH] Actually place the debugroadregen blocks --- .../plotsquared/core/command/DebugRoadRegen.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/DebugRoadRegen.java b/Core/src/main/java/com/plotsquared/core/command/DebugRoadRegen.java index 0660e7e89..32d1b0f00 100644 --- a/Core/src/main/java/com/plotsquared/core/command/DebugRoadRegen.java +++ b/Core/src/main/java/com/plotsquared/core/command/DebugRoadRegen.java @@ -95,14 +95,14 @@ public class DebugRoadRegen extends SubCommand { manager.createRoadEast(plot, queue); manager.createRoadSouth(plot, queue); manager.createRoadSouthEast(plot, queue); - player.sendMessage( - TranslatableCaption.of("debugroadregen.regen_done"), - Template.of("value", String.valueOf(plot.getId())) - ); - player.sendMessage( - TranslatableCaption.of("debugroadregen.regen_all"), - Template.of("value", "/plot regenallroads") - ); + queue.setCompleteTask(() -> { + ; + player.sendMessage(TranslatableCaption.of("debugroadregen.regen_done"), + Template.of("value", String.valueOf(plot.getId()))); + player.sendMessage(TranslatableCaption.of("debugroadregen.regen_all"), + Template.of("value", "/plot regenallroads")); + }); + queue.enqueue(); } return true; }