Beispiel #1
0
 public static function sendUserSystemTextChatMessage($to, $text)
 {
     $packet = new TextChat();
     $packet->setFromSystemUser();
     $packet->to = intval($to);
     $packet->setText($text);
     Server::getInstance()->sendPacket($packet);
 }
Beispiel #2
0
 public function _initServer()
 {
     Cache::getInstance()->initConfig(\Yaf\Application::app()->getConfig()->get('application')->get('cache'));
     Server::getInstance()->initConfig(\Yaf\Application::app()->getConfig()->get('application')->get('chat'))->register();
 }