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
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user