Package com.tenio.core.handler.event
Interface EventPlayerReconnectedResult<P extends Player>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Returns the result when a player tried to reconnect to the server.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(P player, Session session, PlayerReconnectedResult result) When a player tried to reconnect to the server.
-
Method Details
-
handle
When a player tried to reconnect to the server. The situation happens if the player gets in an IDLE state for long time enough to be disconnected from the server automatically.- Parameters:
player
- the reconnectingPlayer
session
- a newSession
which the player is using to reconnect to the serverresult
- the reconnecting result presented byPlayerReconnectedResult
. A player is considered as it rejoined the server when the result equals to success- See Also:
-