public static function onTrigger(Dog_User $user, $msg) { if ($user->isRegistered() && !$user->isLoggedIn()) { if (false !== ($mod_al = Dog_Module::getModule('AutoLogin'))) { $mod_al instanceof DOGMOD_AutoLogin; $mod_al->onTryAutoLogin(); } # You need to login to play. return Dog::reply(DOGMOD_Shadowlamb::instance()->lang('0001')); } if (false === ($player = self::getPlayerForUser($user))) { return Dog::reply('Can not get Player for user ' . $user->getName() . '.'); } SR_Tell::onTell($player); # Do it! Shadowcmd::onTrigger($player, $msg); }
private function onMessageTell($message) { return SR_Tell::tell($this->getID(), $message); }