Login

public class Login

Utilities for logging in and inspecting current login state

Types

LoginMessage
Link copied to clipboard
public enum LoginMessage
Represents a mesage that can be displayed when trying to log in, such as already logged in

Functions

getLoginMessage
Link copied to clipboard
static Optional<Login.LoginMessagegetLoginMessage()
Attempts to get the login message at the login screen
getSelectedLoginName
Link copied to clipboard
static String getSelectedLoginName()
isLoggedIn
Link copied to clipboard
static boolean isLoggedIn()
Checks if we are currently logged in
isLoginMusicDisabled
Link copied to clipboard
static boolean isLoginMusicDisabled()
Checks if login music is disabled.
login
Link copied to clipboard
static boolean login()
Attempts to log in using the account selected by the user when starting the script
static boolean login(String username, String password)
Attempts to log in using ths specified credentials
static boolean login(String username, String password, String authenticatorSecret)
Attempts to log in using ths specified credentials
logout
Link copied to clipboard
static boolean logout()
Attempts to log out
setLoginMusic
Link copied to clipboard
static void setLoginMusic(boolean disabled)
Sets whether login music should be disabled or not