Skip to content

[v3] Fix AuthMe login race, LocalMode port override, and incomplete deop in stand-reset #54

Description

@monikon22

Found by @Drownek testing #52 on a real stand (#46). Independent of the player-reuse rework —
worth their own small PRs rather than waiting on it.

1. AuthMe login prompt missed during handshake

auth-authme-package/index.ts: const joinIndex = player.getMessageBufferIndex() can miss the
login prompt when it arrives during the handshake, before the buffer index is read. Fix:
hardcode const joinIndex = 0.

2. LocalMode ignores the configured port

PaperProvisionTask never passes the custom port through to server.properties, so a locally
provisioned server always comes up on 25565 regardless of what the environment DSL says.

3. stand-reset.ts deop doesn't clear ability state

The raw minecraft:deop command run in stand-reset.ts removes operator status server-side but
doesn't clear player.abilities on the bot's own tracked state. Fix: await player.deOp()
instead of the raw command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions