feat: kick_player can target a publicId (admin bot) (#4403)

## Description:

Add an optional `targetPublicId` to KickPlayerIntent; the server
resolves it against the connected clients to the live clientID, then
kicks as before. Existing clientID targeting (lobby / in-game kick) is
unchanged. That way you can kick player with both the clientID and
playerID

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory

## Please put your Discord username so you can be contacted if a bug or
regression is found:

zixer._
This commit is contained in:
Zixer1
2026-06-24 14:34:17 -07:00
committed by GitHub
parent 82efcecb80
commit 8ce5f3439c
5 changed files with 49 additions and 8 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ describe("GameServer - kick_player authorization", () => {
"message",
JSON.stringify({
type: "intent",
intent: { type: "kick_player", target },
intent: { type: "kick_player", targetClientID: target },
}),
);
}