Package org.dreambot.api.script.listener
Interface LoginListener
-
- All Superinterfaces:
java.util.EventListener
public interface LoginListener extends java.util.EventListener
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onLoadingStateChange(int state)
This fires when the login loading state changesdefault void
onLoginResponse(int response)
This will fire when the game receives a login response codedefault void
onLoginResponseChange(java.lang.String message0, java.lang.String message1, java.lang.String message2)
This will fire when the login response messages changedefault void
onLoginStageChange(int stage)
This fires when the game's login stage changes
-
-
-
Method Detail
-
onLoginStageChange
default void onLoginStageChange(int stage)
This fires when the game's login stage changes- Parameters:
stage
- 0: Pre-login welcome screen 2: Login screen 3: Try again screen 4: Authenticator screen
-
onLoadingStateChange
default void onLoadingStateChange(int state)
This fires when the login loading state changes- Parameters:
state
- 0-9 before reaching the LOADING game state if successful then 14-16 before reaching the LOGGED_IN game state
-
onLoginResponseChange
default void onLoginResponseChange(java.lang.String message0, java.lang.String message1, java.lang.String message2)
This will fire when the login response messages change- Parameters:
message0
- the first line of the responsemessage1
- the second line of the responsemessage2
- the third line of the response
-
onLoginResponse
default void onLoginResponse(int response)
This will fire when the game receives a login response code- Parameters:
response
- -3: connection timed out 3: invalid credentials 4: banned
-
-