'snip', 'password' => 'snip', 'host' => 'snip', 'port' => snip, ); $mcmyadmin = new McMyAdmin($mcconfig['username'],$mcconfig['password'],$mcconfig['host'],$mcconfig['port']); $players = $mcmyadmin->getPlayers(); echo "" . implode(" ",$players); if(isset($_GET['start'])) { $mcmyadmin->startServer(); } if(isset($_GET['stop'])) { $mcmyadmin->stopServer(); } if(isset($_GET['restart'])) { $mcmyadmin->restartServer(); } if(isset($_GET['kill'])) { $mcmyadmin->killServer(); } if(isset($_GET['30s-restart'])) { $mcmyadmin->sendChat('The Server will be restarted in 30 seconds.'); } if(isset($_GET['20s-restart'])) { $mcmyadmin->sendChat('The Server will be restarted in 20 seconds.'); } if(isset($_GET['10s-restart'])) { $mcmyadmin->sendChat('The Server will be restarted in 10 seconds.'); } if(isset($_GET['5s-restart'])) { $mcmyadmin->sendChat('The Server will be restarted in 5 seconds.'); } if(isset($_GET['30s-stop'])) { $mcmyadmin->sendChat('The Server will be shut down in 30 seconds.'); } if(isset($_GET['20s-stop'])) { $mcmyadmin->sendChat('The Server will be shut down in 20 seconds.'); } if(isset($_GET['10s-stop'])) { $mcmyadmin->sendChat('The Server will be shut down in 10 seconds.'); } if(isset($_GET['5s-stop'])) { $mcmyadmin->sendChat('The Server will be shut down in 5 seconds.'); } if(isset($_GET['whitelist'])) { $mcmyadmin->addGroupValue ("Everyone", "groupmembers", $_GET['whitelist']); } function print_list($array) { $str = ''; return $str; }