PlayerReadyEvent
Package:
com.hypixel.hytale.server.core.event.events.playerExtends:PlayerEvent<String>Implements:IEvent<String>Cancellable: No
Standard event dispatched when a player signals readiness to the server. This is the final step in the player connection flow — after the player entity has been created, connected, and placed into a world, the client sends a ready signal and this event fires.
Fields / Accessors
Section titled “Fields / Accessors”| Field | Type | Accessor | Mutable | Nullable |
|---|---|---|---|---|
playerRef | Ref<EntityStore> | getPlayerRef() | No | No |
player | Player | getPlayer() | No | No |
readyId | int | getReadyId() | No | No |
- playerRef — Reference to the player. Inherited from
PlayerEvent. - player — The player component. Inherited from
PlayerEvent. - readyId — Identifier for the readiness signal.
Fired By
Section titled “Fired By”Player.onReady()(line 306) viaeventBus dispatchFor— EventBus keyed dispatch when the player signals readiness.
Listening
Section titled “Listening”getEventRegistry().registerGlobal(PlayerReadyEvent.class, event -> { Player player = event.getPlayer(); int readyId = event.getReadyId(); // Player is fully interactive});Related Events
Section titled “Related Events”AddPlayerToWorldEvent— Fired before this event when the player enters a world.PlayerConnectEvent— Fired earlier in the connection flow when the player entity is created.
Connection Flow
Section titled “Connection Flow”PlayerSetupConnectEvent --> PlayerConnectEvent --> AddPlayerToWorldEvent --> PlayerReadyEvent