Package com.avrix.events
Class OnConnectionStateChangedEvent
java.lang.Object
com.avrix.events.Event
com.avrix.events.OnConnectionStateChangedEvent
When a player is connecting to the server, the connection is going through different stages. This event is triggered for each of these stages of the initial connection.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetting the event nameabstract void
handleEvent
(String state, String reason) Called Event Handling Method
-
Constructor Details
-
OnConnectionStateChangedEvent
public OnConnectionStateChangedEvent()
-
-
Method Details
-
getEventName
Getting the event name- Specified by:
getEventName
in classEvent
- Returns:
- name of the event being implemented
-
handleEvent
Called Event Handling Method- Parameters:
state
- The current state of the connection that has changed.reason
- The reason leading to the state change. It can be null.
-