Documentation

StatusInterface

Interface StatusInterface

Table of Contents

Methods

connect()  : StatusInterface
Attempts to connect to the given host.
getCountPlayers()  : int
Returns the potential number of players
getInfo()  : array<string, mixed>
Returns the obtained host information
getMaxPlayers()  : int
Returns the number of slots
getPlayers()  : array<string|int, string>
Returns a potential list of players
isConnected()  : bool
Returns information about whether the connection was successful, it can also tell if the server is online
setTimeout()  : void
Sets the time to get resources

Methods

getCountPlayers()

Returns the potential number of players

public getCountPlayers() : int
Return values
int

getInfo()

Returns the obtained host information

public getInfo() : array<string, mixed>
Return values
array<string, mixed>

getMaxPlayers()

Returns the number of slots

public getMaxPlayers() : int
Return values
int

getPlayers()

Returns a potential list of players

public getPlayers() : array<string|int, string>
Return values
array<string|int, string>

isConnected()

Returns information about whether the connection was successful, it can also tell if the server is online

public isConnected() : bool
Return values
bool

setTimeout()

Sets the time to get resources

public setTimeout(int $timeout) : void
Parameters
$timeout : int

        
On this page

Search results