mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Add teleporting_offline_player message to /tpoffline
This commit is contained in:
1 parent
a180311662
commit
1c1cbecda3
1 file changed
+2
@@ -36,6 +36,8 @@ public class TpOfflineCommand extends CommandBase implements TabCompletable {
|
||||
.ifPresent(onlineUser::sendMessage);
|
||||
return;
|
||||
}
|
||||
plugin.getLocales().getLocale("teleporting_offline_player", targetUser)
|
||||
.ifPresent(onlineUser::sendMessage);
|
||||
plugin.getTeleportManager().teleport(onlineUser, offlinePosition.get()).thenAccept(
|
||||
result -> plugin.getTeleportManager().finishTeleport(onlineUser, result)).join();
|
||||
}).join();
|
||||
|
||||
Reference in new issue
Block a user