Skip to content

PlayerReadyEvent

Package: com.hypixel.hytale.server.core.event.events.player Extends: PlayerEvent<String> Implements: IEvent<String> Cancellable: No

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. Listeners can use this as the point at which the player is fully interactive.

The playerRef and player fields are inherited from PlayerEvent. The readyId field identifies the specific readiness signal (the server may track multiple ready states).

Because the key type is String, this event supports keyed dispatch. Listeners can register for a specific key or use registerGlobal() to receive all dispatches.

FieldTypeAccessorMutableNotes
playerRefRef<EntityStore>getPlayerRef()NoReference to the player. Inherited from PlayerEvent.
playerPlayergetPlayer()NoThe player component. Inherited from PlayerEvent.
readyIdintgetReadyId()NoIdentifier for the readiness signal.
  • Dispatched by Player.onReady() (line 306) via eventBus.dispatchFor() using keyed dispatch when the player signals readiness to the server.
getEventRegistry().registerGlobal(PlayerReadyEvent.class, event -> {
Player player = event.getPlayer();
int readyId = event.getReadyId();
// Player is fully interactive
});
  • AddPlayerToWorldEvent — fired before this event when the player enters a world. Previous step in the connection flow.
  • PlayerConnectEvent — fired earlier in the connection flow when the player entity is created.
PlayerSetupConnectEvent --> PlayerConnectEvent --> AddPlayerToWorldEvent --> PlayerReadyEvent