mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +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);
|
.ifPresent(onlineUser::sendMessage);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
plugin.getLocales().getLocale("teleporting_offline_player", targetUser)
|
||||||
|
.ifPresent(onlineUser::sendMessage);
|
||||||
plugin.getTeleportManager().teleport(onlineUser, offlinePosition.get()).thenAccept(
|
plugin.getTeleportManager().teleport(onlineUser, offlinePosition.get()).thenAccept(
|
||||||
result -> plugin.getTeleportManager().finishTeleport(onlineUser, result)).join();
|
result -> plugin.getTeleportManager().finishTeleport(onlineUser, result)).join();
|
||||||
}).join();
|
}).join();
|
||||||
|
|||||||
Reference in new issue
Block a user