Add set_destination remote interface to player_sync

A plugin that moves a player calls remote.call("player_sync",
"set_destination", player_name, instance_id) before connect_to_server.
It only records the destination. Every leave clears it, and a leave
that uploads with reason switching_servers adds it to the upload as
destination_instance_id. The README describes it for plugin authors.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ILLISISandClaude Opus 5.5 committed 2026-10-20 12:23:13 +11:00
1 parent 240180d847
commit 18afae4686
3 files changed
+46

No files matched your search

+1
View File
@@ -959,6 +959,7 @@ end
--- @field personal_logistic_slots table?
--- @field crafting_queue table?
--- @field recipe_notifications string?
--- @field destination_instance_id integer? Only on a leave upload, for instance.ts, which strips it
--- @param player LuaPlayer
--- @return table<string, boolean>