SetUsername
Methods
public PlayerAccountOperation SetUsername(string username, string password = "", bool force = false, CancellationToken cancellationToken = default)
Assign a unique username and an optional password to the current player account.
Parameters
Type | Name | Description |
---|---|---|
string | username | Username for the current account. |
string | password | (Optional) Password for the account.
|
bool | force |
If the username is already taken by another player account, and a
If the username is already linked to another player account, and a WARNING: If the username is unlinked from another player account, and that other player account has no other authentication methods set up besides said username and its associated password, then access to that player account will be lost. |
CancellationToken | cancellationToken | Can be used to cancel the operation. |
Returns
Type | Description |
---|---|
PlayerAccountOperation | Result of the operation. |