Enum Class LoginEvent.Response

java.lang.Object
java.lang.Enum<LoginEvent.Response>
net.storm.sdk.script.blocking_events.LoginEvent.Response
All Implemented Interfaces:
Serializable, Comparable<LoginEvent.Response>, Constable
Enclosing class:
LoginEvent

public static enum LoginEvent.Response extends Enum<LoginEvent.Response>
Enumeration of possible login server responses.

Each response contains a code and up to three lines of message text that may be displayed to the user.

  • Enum Constant Details

    • CONNECTION_TIMED_OUT

      public static final LoginEvent.Response CONNECTION_TIMED_OUT
      Connection to server timed out.
    • ERROR_CONNECTING

      public static final LoginEvent.Response ERROR_CONNECTING
      Error establishing connection to server.
    • NO_SERVER_RESPONSE

      public static final LoginEvent.Response NO_SERVER_RESPONSE
      No response received from login server.
    • INVALID_CREDENTIALS

      public static final LoginEvent.Response INVALID_CREDENTIALS
      Invalid username or password.
    • ACCOUNT_DISABLED

      public static final LoginEvent.Response ACCOUNT_DISABLED
      Account has been disabled.
    • ACCOUNT_NOT_LOGGED_OUT

      public static final LoginEvent.Response ACCOUNT_NOT_LOGGED_OUT
      Account is still logged in from a previous session.
    • RUNESCAPE_UPDATE

      public static final LoginEvent.Response RUNESCAPE_UPDATE
      Game client requires update.
    • WORLD_FULL

      public static final LoginEvent.Response WORLD_FULL
      Selected world is full.
    • LOGIN_SERVER_OFFLINE

      public static final LoginEvent.Response LOGIN_SERVER_OFFLINE
      Login server is offline.
    • LOGIN_LIMIT

      public static final LoginEvent.Response LOGIN_LIMIT
      Too many connections from this IP address.
    • BAD_SESSION_ID

      public static final LoginEvent.Response BAD_SESSION_ID
      Session ID is invalid.
    • ACCOUNT_STOLEN

      public static final LoginEvent.Response ACCOUNT_STOLEN
      Account may be compromised.
    • MEMBERSHIP_REQUIRED

      public static final LoginEvent.Response MEMBERSHIP_REQUIRED
      Members subscription required for this world.
    • COULD_NOT_COMPLETE

      public static final LoginEvent.Response COULD_NOT_COMPLETE
      Login could not be completed.
    • SERVER_BEING_UPDATED

      public static final LoginEvent.Response SERVER_BEING_UPDATED
      Server is undergoing maintenance.
    • TOO_MANY_ATTEMPTS

      public static final LoginEvent.Response TOO_MANY_ATTEMPTS
      Too many recent login attempts.
    • MEMBERS_ONLY_AREA

      public static final LoginEvent.Response MEMBERS_ONLY_AREA
      Player is in a members-only area on a free world.
    • ACCOUNT_LOCKED

      public static final LoginEvent.Response ACCOUNT_LOCKED
      Account is locked due to suspected theft.
    • WORLD_CLOSED_BETA

      public static final LoginEvent.Response WORLD_CLOSED_BETA
      World is running a closed beta.
    • INVALID_LOGIN_SERVER

      public static final LoginEvent.Response INVALID_LOGIN_SERVER
      Invalid login server requested.
    • MALFORMED_LOGIN_PACKET

      public static final LoginEvent.Response MALFORMED_LOGIN_PACKET
      Login packet was malformed.
    • NO_SERVER_REPLY

      public static final LoginEvent.Response NO_SERVER_REPLY
      No reply from login server.
    • ERROR_LOADING_PROFILE

      public static final LoginEvent.Response ERROR_LOADING_PROFILE
      Error loading player profile.
    • UNEXPECTED_SERVER_RESPONSE

      public static final LoginEvent.Response UNEXPECTED_SERVER_RESPONSE
      Unexpected response from login server.
    • COMPUTER_ADDRESS_BLOCKED

      public static final LoginEvent.Response COMPUTER_ADDRESS_BLOCKED
      Computer IP address is blocked.
    • SERVICE_UNAVAILABLE

      public static final LoginEvent.Response SERVICE_UNAVAILABLE
      Service is currently unavailable.
    • NO_DISPLAY_NAME_SET

      public static final LoginEvent.Response NO_DISPLAY_NAME_SET
      Account requires a display name.
    • UNSUCCESSFUL_ACCOUNT_LOGIN_ATTEMPT

      public static final LoginEvent.Response UNSUCCESSFUL_ACCOUNT_LOGIN_ATTEMPT
      Account login attempt was unsuccessful.
    • ACCOUNT_INACCESSIBLE

      public static final LoginEvent.Response ACCOUNT_INACCESSIBLE
      Account is temporarily inaccessible.
    • VOTE_REQUIRED

      public static final LoginEvent.Response VOTE_REQUIRED
      Vote required to play.
    • ENTER_AUTH

      public static final LoginEvent.Response ENTER_AUTH
      Authenticator code required.
    • INCORRECT_AUTH_CODE

      public static final LoginEvent.Response INCORRECT_AUTH_CODE
      Entered authenticator code was incorrect.
    • RUNESCAPE_UPDATE_2

      public static final LoginEvent.Response RUNESCAPE_UPDATE_2
      Game client requires update (alternate).
  • Method Details

    • values

      public static LoginEvent.Response[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LoginEvent.Response valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forCode

      public static LoginEvent.Response forCode(int code)
      Finds a Response by its numeric code.
      Parameters:
      code - the response code to look up
      Returns:
      the matching Response, or null if not found
    • forMessage

      public static LoginEvent.Response forMessage(String contained)
      Finds a Response by a substring contained in its message.
      Parameters:
      contained - the substring to search for (case-insensitive)
      Returns:
      the matching Response, or null if not found
    • getMessage

      public String getMessage()
      Gets the complete message by concatenating all three lines.
      Returns:
      the full response message