CrackedAccount

class CrackedAccount(username: String, online: Boolean = false) : MinecraftAccount

A cracked account - has no credentials and cannot join premium servers.

With online set, the real UUID of the name is looked up so that skins resolve; otherwise the offline UUID Minecraft derives from the name is used.

Constructors

Link copied to clipboard
constructor(username: String, online: Boolean = false)
constructor()

Used for JSON deserialize.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var profile: GameProfile?
Link copied to clipboard
Link copied to clipboard

Known as soon as the account exists, unlike profile, which is only resolved once refresh has succeeded at least once.

Functions

Link copied to clipboard
fun isBanned(serverName: String): Boolean
Link copied to clipboard
Link copied to clipboard
fun login(): Pair<SessionWithService, YggdrasilAuthenticationService>

Authenticates the account and returns the session to hand to the game, along with the authentication service that resolves other players' profiles while it is active.

Link copied to clipboard
open override fun refresh()
Link copied to clipboard
fun toJson(): JsonObject
Link copied to clipboard
fun trackBan(ban: Ban)

Tracking bans is up to the caller - this only stores and expires them.

Link copied to clipboard
fun untrackBan(serverName: String)