From b768ee6d410a00b2caec54309db990fc5b0ee4fb Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Sat, 22 May 2021 18:15:34 +0200 Subject: [PATCH] Don't send teleport message before the teleportation is initiated --- Core/src/main/java/com/plotsquared/core/command/Area.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Area.java b/Core/src/main/java/com/plotsquared/core/command/Area.java index 7a5332046..a9b8f2bd3 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Area.java +++ b/Core/src/main/java/com/plotsquared/core/command/Area.java @@ -395,8 +395,8 @@ public class Area extends SubCommand { final String world = this.setupUtils.setupWorld(builder); if (this.worldUtil.isWorld(world)) { PlotSquared.get().loadWorld(world, null); - player.sendMessage(TranslatableCaption.of("setup.setup_finished")); player.teleport(this.worldUtil.getSpawn(world), TeleportCause.COMMAND); + player.sendMessage(TranslatableCaption.of("setup.setup_finished")); if (area.getTerrain() != PlotAreaTerrainType.ALL) { QueueCoordinator queue = blockQueue.getNewQueue(worldUtil.getWeWorld(world)); queue.setChunkConsumer(chunk -> AugmentedUtils.generate( @@ -525,8 +525,8 @@ public class Area extends SubCommand { builder.generatorName(PlotSquared.platform().pluginName()); String world = this.setupUtils.setupWorld(builder); if (this.worldUtil.isWorld(world)) { - player.sendMessage(TranslatableCaption.of("setup.setup_finished")); player.teleport(this.worldUtil.getSpawn(world), TeleportCause.COMMAND); + player.sendMessage(TranslatableCaption.of("setup.setup_finished")); } else { player.sendMessage( TranslatableCaption.of("errors.error_create"),