LoginAPI
The login screen: read its state, press Play and dismiss the disconnect message.
Final classRLPlugins API
public final class LoginAPIMembers
Static methods
- booleanclickDisconnectedOk()
Dismisses the login-screen OK prompt shown after a lost or idle-expired session.
- voidclickPlayButton()
Click play button.
- booleanisLegacyCredentialScreen()
Whether legacy credential screen.
- booleanisLoggedIn()
Whether logged in.
- booleanisLoginScreen()
Whether login screen.
- booleanisMembersWorldBlocked()
Whether members world blocked.
- booleanisWelcomeScreen()
Whether welcome screen.
- booleanloginMessageContains(String)
Login message contains.
- voidloginWithJagexAccount()
Login with jagex account.
- voidpressEnterOnLoginScreen()
Press enter on login screen.
- voidswitchToFreeWorld()
Switch to free world.
clickDisconnectedOk()static
public static boolean clickDisconnectedOk()Dismisses the login-screen OK prompt shown after a lost or idle-expired session.
The game renders this prompt directly on the login canvas, so there is no RuneLite widget to interact with.
Returns
True when the disconnected prompt owned the action.
clickPlayButton()static
public static void clickPlayButton()Click play button.
isLegacyCredentialScreen()static
public static boolean isLegacyCredentialScreen()Whether legacy credential screen.
isLoggedIn()static
public static boolean isLoggedIn()Whether logged in.
isLoginScreen()static
public static boolean isLoginScreen()Whether login screen.
isMembersWorldBlocked()static
public static boolean isMembersWorldBlocked()Whether members world blocked.
isWelcomeScreen()static
public static boolean isWelcomeScreen()Whether welcome screen.
loginMessageContains(String)static
public static boolean loginMessageContains(String text)Login message contains.
Parameters
text- Text.
loginWithJagexAccount()static
public static void loginWithJagexAccount()Login with jagex account.
pressEnterOnLoginScreen()static
public static void pressEnterOnLoginScreen()Press enter on login screen.
switchToFreeWorld()static
public static void switchToFreeWorld()Switch to free world.
- Can wait for the game. Call it only from
VitaPlugin.loop(); in a@Subscribemethod it freezes the game.
Also allowed
Every class has these, as in plain Java.
equals, toString