public function onPrismConnect(IS_VER $VER) { $MSX = new IS_MSX(); $MSX->Msg('PRISM Version ^3' . PHPInSimMod::VERSION . '^8 Has Connected.')->Send(); }
public function castLFSCommand($cmd, $ucid) { # Get the command and it's args. $argv = str_getcsv($cmd, ' '); array_shift($argv); $cmd = array_shift($argv); $castingAdmin = $this->getClientByUCID($ucid); # If we don't have target(s), then we can't do anything. if (count($argv) == 0) { $MTC = new IS_MTC(); $MTC->UCID($ucid)->Msg("{$cmd} needs a target.")->Send(); } else { foreach ($argv as $target) { if ($castingAdmin->UName == $target) { $MTC = new IS_MTC(); $MTC->UCID($ucid)->Msg('Why would you even try to run this on yourself?')->Send(); } else { if ($this->isImmune($target)) { $MSX = new IS_MSX(); $MSX->Msg("Admin {$castingAdmin->UName} tired to kick immune Admin {$target}.")->Send(); } else { $MST = new IS_MST(); $MST->Msg("/{$cmd} {$target}")->Send(); $MSX = new IS_MSX(); $MSX->Msg("Admin {$castingAdmin->UName} {$cmd}ed {$target}.")->Send(); } } } } }