diff --git a/common/src/main/java/net/william278/huskhomes/command/RtpCommand.java b/common/src/main/java/net/william278/huskhomes/command/RtpCommand.java index 3279e13c..a211f1bd 100644 --- a/common/src/main/java/net/william278/huskhomes/command/RtpCommand.java +++ b/common/src/main/java/net/william278/huskhomes/command/RtpCommand.java @@ -113,12 +113,12 @@ public class RtpCommand extends CommandBase implements ConsoleExecutable { plugin.getTeleportManager().teleport(foundUser.get(), position.get()) .thenAccept(result -> { if (result.successful) { - plugin.getLoggingAdapter().log(Level.INFO, "Teleported" + foundUser.get().username + " to a random position."); + plugin.getLoggingAdapter().log(Level.INFO, "Teleported " + foundUser.get().username + " to a random position."); } else { plugin.getLoggingAdapter().log(Level.WARNING, "Failed to teleport" + foundUser.get().username + " to a random position."); } plugin.getTeleportManager().finishTeleport(foundUser.get(), result); - }).join(); + }); }); } diff --git a/common/src/main/java/net/william278/huskhomes/command/TpCommand.java b/common/src/main/java/net/william278/huskhomes/command/TpCommand.java index 167ea9cf..4b51d9de 100644 --- a/common/src/main/java/net/william278/huskhomes/command/TpCommand.java +++ b/common/src/main/java/net/william278/huskhomes/command/TpCommand.java @@ -163,7 +163,7 @@ public class TpCommand extends CommandBase implements TabCompletable, ConsoleExe plugin.getTeleportManager().teleportToPlayerByName(playerToTeleport, teleportCommandTarget.targetPlayer); } else { assert teleportCommandTarget.targetPosition != null; - plugin.getTeleportManager().timedTeleport(playerToTeleport, teleportCommandTarget.targetPosition) + plugin.getTeleportManager().teleport(playerToTeleport, teleportCommandTarget.targetPosition) .thenAccept(teleportResult -> { if (teleportResult.successful) { plugin.getLoggingAdapter().log(Level.INFO, "Successfully teleported " + playerToTeleport.username);