mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Don't use timed teleport for console commands
This commit is contained in:
1 parent
66e9eaf2b2
commit
606fbb6caa
2 files changed
+3
-3
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user