Skip to content

## Bug: luarules playertoteam leaves moved player unable to resign or be moved to spectator #3062

Description

@steeldesade

Description

When using /luarules playertoteam to move a player to an existing team, the moved player shares a teamID with the existing player. This creates a situation where the moved player is effectively stuck for the remainder of the game.

Expected Behaviour

Expected behaviour:
A player moved via playertoteam should retain the ability to resign or be moved to spectator independently of the team they were merged into.

Actual Behaviour

Observed behaviour:

  • The moved player cannot !resign as they share a teamID and have no independent team to resign
  • The moved player cannot move themselves to spectator
  • Moderators cannot force the moved player to spectator without affecting the entire team they were merged into

Reproduction steps

Steps to reproduce:

  1. In a multiplayer game, run /luarules playertoteam <playerID> <teamID> to move a player onto an existing team
  2. Attempt to have the moved player !resign
  3. Attempt to move the player to spectator via moderator commands
  4. Attempt to have the player move themselves to spectator

Other

Impact:
This is a significant moderation concern. In grief or dispute scenarios where playertoteam is used as an intervention tool, the moved player can become permanently stuck with no clean resolution available to moderators.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions