public function CommandHold($player, $command) { if (ServerList::serverEnabled($command[0])) { ServerList::getServer($command[0])->hold(); } }
public function WSMethodRcon($server, $command) { if (!ServerList::serverEnabled($server)) { throw new WebserviceException('Server not found'); } return ServerList::getServerRCon($server)->send($command); }