示例#1
0
文件: gmd.php 项目: sinfocol/gwf3
 /**
  * Execute a remote command.
  * @param SR_Player $player
  * @param SR_Player $remote
  * @param array $args
  */
 public static function onRemote(SR_Player $player, SR_Player $remote, array $args)
 {
     # Enable remote output.
     $remote->setRemotePlayer($player);
     # Execute command.
     $back = Shadowcmd::onTrigger($remote, implode(' ', $args));
     # Disable remote output.
     $remote->unsetRemotePlayer();
     # Return result.
     return $back;
 }