Package net.storm.api.account
Class GameAccount
java.lang.Object
net.storm.api.account.GameAccount
Represents a game account with credentials and associated information.
This class stores account details including login credentials (username/password), display name, authenticator code, and bank PIN. It supports both regular accounts and accounts launched through the Jagex Launcher.
Example usage:
// Create a basic account with username and password
GameAccount account = new GameAccount("user@email.com", "password123");
// Create a full account with all details
GameAccount fullAccount = new GameAccount(
"user@email.com",
"password123",
"PlayerName",
"123456", // authenticator code
"1234" // bank PIN
);
// Check if account uses Jagex Launcher
if (account.isJagexLauncher()) {
// Handle Jagex Launcher account
}
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether this account is configured for use with the Jagex Launcher.
-
Constructor Details
-
GameAccount
public GameAccount()
-
-
Method Details
-
isJagexLauncher
public boolean isJagexLauncher()Checks whether this account is configured for use with the Jagex Launcher.An account is considered a Jagex Launcher account when it has a username, password, and display name all set. The Jagex Launcher uses a different authentication flow that requires these fields.
- Returns:
trueif this account is configured for Jagex Launcher authentication,falseotherwise
-