Phpcraft Realms Module
|
Public Member Functions | |
__construct (Account $account, array $data) | |
join (bool $await_start=true) | |
Static Public Member Functions | |
static | getRealmsServers (Account $account) |
Public Attributes | |
$account | |
$id | |
$name | |
$description | |
$owner_name | |
$owner_uuid | |
$state | |
$days_left | |
$expired | |
$expired_trial | |
$world_type | |
$players | |
$max_players | |
$minigame_name | |
$minigame_id | |
$minigame_image | |
Phpcraft\Realms\Server::__construct | ( | Account | $account, |
array | $data | ||
) |
Account | $account | |
array | $data |
|
static |
Returns all servers the given account has joined or owns.
Account | $account |
Phpcraft\Realms\Server::join | ( | bool | $await_start = true | ) |
Returns information required to join the server.
bool | $await_start |
Account Phpcraft\Realms\Server::$account |
int Phpcraft\Realms\Server::$days_left |
string Phpcraft\Realms\Server::$description |
bool Phpcraft\Realms\Server::$expired |
bool Phpcraft\Realms\Server::$expired_trial |
int Phpcraft\Realms\Server::$id |
int Phpcraft\Realms\Server::$max_players |
int null Phpcraft\Realms\Server::$minigame_id |
string null Phpcraft\Realms\Server::$minigame_image |
The base64-encoded image for the minigame that is currently active or null if not applicable.
string null Phpcraft\Realms\Server::$minigame_name |
The name of the minigame that is currently active or null if not applicable.
string Phpcraft\Realms\Server::$name |
string Phpcraft\Realms\Server::$owner_name |
UUID Phpcraft\Realms\Server::$owner_uuid |
array< string > Phpcraft\Realms\Server::$players |
string Phpcraft\Realms\Server::$state |
The state of the realm. Can be ADMIN_LOCK, CLOSED, OPEN, or UNINITIALIZED.
string Phpcraft\Realms\Server::$world_type |
The type of the world. Can be NORMAL, MINIGAME, ADVENTUREMAP, EXPERIENCE, or INSPIRATION.