extends |
CSQuery |
|---|---|
implements |
ProtocolInterface |
Minecraft server protocol implementation. The SLP protocol does not provide server variables or rules. These are only available through the Legacy Query protocol, which requires the server administrator to explicitly enable query in server.properties with enable-query=true. Protocols:
| Methods | ||
|---|---|---|
public
|
__construct(?string $address = null, ?int $queryport = null, string $protocolVersion = 'slp')
|
# |
public
|
query_server(bool $getPlayers = true, bool $getRules = true): bool
|
# |
public
|
query(ServerAddress $addr): ServerInfo
|
# |
public
|
getProtocolName(): string
|
# |
public
|
getVersion(ServerInfo $info): string
|
# |
| Properties | |||
|---|---|---|---|
public
|
string
|
$name = 'Minecraft'
|
# |
public
|
array
|
$supportedGames = ['Minecraft']
|
# |
public
|
string
|
$protocol = 'minecraft'
|
# |
public
|
string
|
$protocolVersion
|
# |
| Properties inherited from Clansuite\ServerQuery\CSQuery |
|---|
$address, $queryport, $hostport, $online, $gamename, $gameversion, $servertitle, $mapname, $maptitle, $gametype, $numplayers, $maxplayers, $steamAppID, $password, $nextmap, $players, $playerkeys, $playerteams, $maplist, $rules, $errstr, $response, $game_series_list, $debug, $udpClient |