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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.rusherhack.core.event.stage.Stage
org.rusherhack.core.event.stage.Stage
getStage()
Stage.PRE
- called when a quit is requested, cancellableMethods inherited from class org.rusherhack.core.event.type.EventCancellable
isCancelled, setCancelled
Methods inherited from class org.rusherhack.core.event.type.Event
setStage
-
Constructor Details
-
EventQuit
-
-
Method Details
-
getReason
-
getStage
public org.rusherhack.core.event.stage.Stage getStage()Stage.PRE
- called when a quit is requested, cancellableStage.POST
- called after a quit happens, not cancellable- Specified by:
getStage
in interfaceorg.rusherhack.core.event.stage.IStageable
- Overrides:
getStage
in classorg.rusherhack.core.event.type.Event
-
getPreferredStage
public org.rusherhack.core.event.stage.Stage getPreferredStage()- Overrides:
getPreferredStage
in classorg.rusherhack.core.event.type.Event
-