Skip to content

Fix crash on management API player kick by deferring player removal - #14481

Open
qventymr wants to merge 2 commits into
PaperMC:mainfrom
qventymr:fix/fix-management-api-kick
Open

qventymr wants to merge 2 commits into
PaperMC:mainfrom
qventymr:fix/fix-management-api-kick

Conversation

@qventymr

Copy link
Copy Markdown

Fixes #14479

Problem

Calling minecraft:players/kick through the management server API caused a server crash.

MinecraftPlayerListServiceImpl#remove called PlayerList#remove before disconnecting the player. The disconnect handler then removed the same player again, retiring its entity scheduler twice and throwing IllegalStateException: Already retired.

Solution

Leave player removal to the normal disconnect handler by commenting out the premature PlayerList#remove call. RPC audit logging is preserved.

@qventymr
qventymr requested a review from a team as a code owner November 11, 2026 18:58
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Nov 11, 2026
@papermc-projects papermc-projects Bot moved this from Awaiting review to Delayed approval in Paper PR Queue Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Delayed approval

Development

Successfully merging this pull request may close these issues.

server management API minecraft:players/kick crash the server

2 participants