Code: Select all
function stopServerNow($login)
{
$name = $this -> storage -> getPlayerObject($login) -> nickName;
$this -> connection -> chatSendServerMessage("$name \$z($login) is shutting down the server NOW.");
$strippedName = Formatting::stripStyles($name);
$this -> connection -> stopServer();
die("$strippedName ($login) shut down the server.");
}