Class EventQuit

java.lang.Object
org.rusherhack.core.event.type.Event
org.rusherhack.core.event.type.EventCancellable
org.rusherhack.client.api.events.client.EventQuit
All Implemented Interfaces:
org.rusherhack.core.event.stage.IStageable

public class EventQuit extends org.rusherhack.core.event.type.EventCancellable
This event is called when the player quits the game, or disconnects from the server.
  • Constructor Details

  • Method Details

    • getReason

      public EventQuit.Reason getReason()
    • getStage

      public org.rusherhack.core.event.stage.Stage getStage()
      Stage.PRE - called when a quit is requested, cancellable

      Stage.POST - called after a quit happens, not cancellable

      Specified by:
      getStage in interface org.rusherhack.core.event.stage.IStageable
      Overrides:
      getStage in class org.rusherhack.core.event.type.Event
    • getPreferredStage

      public org.rusherhack.core.event.stage.Stage getPreferredStage()
      Overrides:
      getPreferredStage in class org.rusherhack.core.event.type.Event