Exemple #1
0
 public function onReorder(IS_REO $REO)
 {
     $this->reorder = FALSE;
     # As we are copying LFS's REO state, we don't need to send this packet on TINY_VTA packet.
     foreach ($REO->PLID as $Pos => $PLID) {
         IS_MTC()->UCID(255)->Text(sprintf('Pos: %02d | PLID: %02d | UName: %s | PName: %s', $Pos, $PLID, $this->getClientByPLID($PLID)->UName, $this->getPlayerByPLID($PLID)->PName))->Send();
     }
     $this->IS_REO = $REO;
     # Updates our list.
     return PLUGIN_CONTINUE;
 }
Exemple #2
0
 public function onPrismConnect(IS_VER $VER)
 {
     $this->conns[] = $this->getCurrentHostId();
     IS_MTC()->UCID(255)->Text('^6> ^7' . debugger::NAME . ' Version ^3' . debugger::VERSION . ' ^7Has Connected.')->Send();
     console(debugger::NAME . ' Version ' . debugger::VERSION . ' Has Connected.');
 }
Exemple #3
0
 protected function translatePrivateMessage($UCID, $messageID, $args = array(), $hostID = null)
 {
     $MTC = IS_MTC()->UCID($UCID);
     $MTC->Text($this->translateText($UCID, $messageID, $args, $hostID = null));
     $MTC->send($hostID);
 }
Exemple #4
0
 public function send($hostId = NULL)
 {
     if ($this->Text == '') {
         return;
     }
     global $PRISM;
     // Decide what IS packet to use to send this message
     if (($PRISM->hosts->getStateById($hostId)->State & ISS_MULTI) === 0) {
         // Single player
         IS_MSL()->Msg($this->Text)->Sound($this->Sound)->send();
     } else {
         // Multi player
         if ($this->PLID > 0) {
             IS_MTC()->PLID($this->PLID)->Text($this->Text)->Sound($this->Sound)->send();
         } else {
             if ($this->UCID > 0) {
                 IS_MTC()->UCID($this->UCID)->Text($this->Text)->Sound($this->Sound)->send();
             } else {
                 IS_MSX()->Msg($this->Text)->send();
             }
         }
     }
     return $this;
 }
Exemple #5
0
 public function cmdTime($cmd, $ucid)
 {
     IS_MTC()->UCID($ucid)->Text('^7The time is, ' . date('g:i:s A (H:i:s), T.'))->Send();
     return PLUGIN_HANDLED;
 }
Exemple #6
0
 public function cmdAdminList($cmd, $ucid)
 {
     global $PRISM;
     $MTC = IS_MTC()->UCID($ucid)->Text('Admins detailed to this server:')->Send();
     foreach ($PRISM->admins->getAdminsInfo() as $user => $details) {
         $MTC->Text("    {$user}")->Send();
     }
     return PLUGIN_HANDLED;
 }
Exemple #7
0
 public function onPoweredByClick($UCID)
 {
     IS_MTC()->Text('^3For more info on PRISM visit:')->UCID($UCID)->send();
     IS_MTC()->Text('^7https://www.lfs.net/forum/312')->UCID($UCID)->send();
 }