accountΒΆ
account contains functions for interacting with your mojang account.
login_user(username, password)
Login to your mojang account. The response contains things like accessToken, clientToken, uuid and something else.
Note: You should never save username and password! Only the client token.
validate_access_token(username, password)
Returns true, if the accessToken is valid. Otherwise it will return false. You should check that before running minecraft.
refresh_access_token(access_token, client_token)
Get a new accessToken.
logout_user(username, password)
Log a user out.
invalidate_access_token(access_token, client_token)
Make an accessToken invalid.
upload_skin(uuid, access_token, path_to_skin.png, slim_model=False)
Upload a Skin.
reset_skin(uuid, access_token)
Reset a Skin.