Skip to content

Instantly share code, notes, and snippets.

@ranisalt
Created May 7, 2014 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ranisalt/707882552245f9ec2058 to your computer and use it in GitHub Desktop.
Save ranisalt/707882552245f9ec2058 to your computer and use it in GitHub Desktop.
if ($server->execute()) {
echo 'Players online: ', $server->players['online'], '<br />',
'Server location: ', $server->serverinfo['location'], '<br />',
'Client version: ', $server->serverinfo['client'] , '<br />';
//apenas alguns exemplos de dados
} else {
echo 'Server offline';
//se execute() returnar false, o servidor esta offline
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment