The bug
When viewing the end credits on a server with an idle timeout lower than the duration of the credits, a player can be kicked because they were idle for too long.
How to reproduce
Start up a server with an idle timeout shorter than the duration of the end credits. I used one minute for testing.
Jump into the end portal as a player that has never seen the end credits before.
Wait until you get idle kicked.
Suggested fix
While the player is watching the credits, the variable player.wonGame
is set to true
. Checking if this value is false before idle kicking the player should be enough to fix this issue.
Linked issues
relates to 2
Comments 3
I reproduced this without a realm, REALMS-1808 seems to be the same issue but specific to realms.
There's also MC-60899, btw.
Is this a Realm, REALMS-1808?