/** * 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; }