entity/player: Added keep-alive to prevent disconnecting
protocol: Fixed conditions in sub-structs