Class OnConnectionStateChangedEvent

java.lang.Object
com.avrix.events.Event
com.avrix.events.OnConnectionStateChangedEvent

public abstract class OnConnectionStateChangedEvent extends Event
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 Details

    • OnConnectionStateChangedEvent

      public OnConnectionStateChangedEvent()
  • Method Details

    • getEventName

      public String getEventName()
      Getting the event name
      Specified by:
      getEventName in class Event
      Returns:
      name of the event being implemented
    • handleEvent

      public abstract void handleEvent(String state, String reason)
      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.