StatusInterface
in
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
connect()
Attempts to connect to the given host.
public
connect() : StatusInterface
Return values
StatusInterfacegetCountPlayers()
Returns the potential number of players
public
getCountPlayers() : int
Return values
intgetInfo()
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
intgetPlayers()
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
boolsetTimeout()
Sets the time to get resources
public
setTimeout(int $timeout) : void
Parameters
- $timeout : int