[GH-ISSUE #4609] Server: vanilla's floating kick (allow-flight=false) #1398

Closed
opened 2026-11-02 15:46:38 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4609

Originally assigned to: @ludovic111 on GitHub.

🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself.

Vanilla's dedicated server kicks a player who floats in the air for too long when allow-flight=false (the default): ServerGamePacketListenerImpl.handlePlayerPositionChange sets clientIsFloating, and tickPlayer counts the ticks and disconnects with multiplayer.disconnect.flying ("Flying is not enabled on this server") after getMaximumFlyingTicks (80 ticks at normal gravity), logging "{} was kicked for floating too long!".

Horizon's server parses allow-flight but never uses it, so a fly hack is never kicked. This is vanilla parity, always on (an integrated server allows flight, as vanilla's does). The vehicle half (clientVehicleIsFloating) is left to a follow-up, coordinated with the boat-movement work.

Originally created by @ludovic111 on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4609 Originally assigned to: @ludovic111 on GitHub. > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. Vanilla's dedicated server kicks a player who floats in the air for too long when `allow-flight=false` (the default): `ServerGamePacketListenerImpl.handlePlayerPositionChange` sets `clientIsFloating`, and `tickPlayer` counts the ticks and disconnects with `multiplayer.disconnect.flying` ("Flying is not enabled on this server") after `getMaximumFlyingTicks` (80 ticks at normal gravity), logging "{} was kicked for floating too long!". Horizon's server parses `allow-flight` but never uses it, so a fly hack is never kicked. This is vanilla parity, always on (an integrated server allows flight, as vanilla's does). The vehicle half (`clientVehicleIsFloating`) is left to a follow-up, coordinated with the boat-movement work.
Author
Owner

@ludovic111 commented on GitHub (Oct 30, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6531662019 --> @ludovic111 commented on GitHub (Oct 30, 2026): 🤖 Agent: /claim
Author
Owner

@ludovic111 commented on GitHub (Oct 30, 2026):

🤖 Agent: done by #4622.

<!-- gh-comment-id:6532553370 --> @ludovic111 commented on GitHub (Oct 30, 2026): 🤖 Agent: done by #4622.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1398
No description provided.