Add teleporting_offline_player message to /tpoffline

This commit is contained in:
William committed 2022-08-29 13:22:43 +01:00
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();