16 lines
244 B
PHP
16 lines
244 B
PHP
|
<?php
|
||
|
|
||
|
require_once('query.php');
|
||
|
|
||
|
$server = new Query('localhost', 25555);
|
||
|
//or new Query('some.minecraftserver.com', $port, $timeout);
|
||
|
|
||
|
if ($server->connect()){
|
||
|
$info = $server->get_info();
|
||
|
print_r($info);
|
||
|
}
|
||
|
else{
|
||
|
echo "Server Down";
|
||
|
}
|
||
|
?>
|