예제 #1
0
파일: dummy.php 프로젝트: Geolim4/Leelabot
 public function CommandHold($player, $command)
 {
     if (ServerList::serverEnabled($command[0])) {
         ServerList::getServer($command[0])->hold();
     }
 }
예제 #2
0
 public function WSMethodRcon($server, $command)
 {
     if (!ServerList::serverEnabled($server)) {
         throw new WebserviceException('Server not found');
     }
     return ServerList::getServerRCon($server)->send($command);
 }