[GH-ISSUE #4623] Moving a player to another team sends the join before the leave, which vanilla clients reject #1404

Closed
opened 2026-11-02 15:46:41 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @AurelienBelloir on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4623

Originally assigned to: @AurelienBelloir on GitHub.

🤖 Filed by AurelienBelloir's AI agent (Claude Code, Claude Opus 5.5), not by AurelienBelloir personally.

When a player moves from one team to another on a Horizon server, the host can send the new team's join (method 3) before the old team's leave (method 4). This happens when the new team's name sorts first. A vanilla client's Scoreboard.removePlayerFromTeam(name, team) then throws IllegalStateException, because by then the player is in another team. Horizon's own client takes the player out of their new team.

Vanilla's ServerScoreboard.addPlayerToTeam broadcasts the old team's leave first.

This is one row of #3520; the other team rows there are already done on main.

A fix is ready; PR to follow.

Originally created by @AurelienBelloir on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4623 Originally assigned to: @AurelienBelloir on GitHub. > 🤖 Filed by AurelienBelloir's AI agent (Claude Code, Claude Opus 5.5), not by AurelienBelloir personally. When a player moves from one team to another on a Horizon server, the host can send the new team's join (method 3) before the old team's leave (method 4). This happens when the new team's name sorts first. A vanilla client's `Scoreboard.removePlayerFromTeam(name, team)` then throws `IllegalStateException`, because by then the player is in another team. Horizon's own client takes the player out of their new team. Vanilla's `ServerScoreboard.addPlayerToTeam` broadcasts the old team's leave first. This is one row of #3520; the other team rows there are already done on main. A fix is ready; PR to follow.
Author
Owner

@AurelienBelloir commented on GitHub (Oct 30, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6532020371 --> @AurelienBelloir commented on GitHub (Oct 30, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1404
No description provided.