Don't use timed teleport for console commands

This commit is contained in:
William committed 2022-08-24 23:49:06 +01:00
1 parent 66e9eaf2b2
commit 606fbb6caa
2 files changed
+3 -3

No files matched your search

@@ -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();
});
});
}