public static function sendUserSystemTextChatMessage($to, $text) { $packet = new TextChat(); $packet->setFromSystemUser(); $packet->to = intval($to); $packet->setText($text); Server::getInstance()->sendPacket($packet); }
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(); }