- started adding admin commands

! admin commands begin with //
This commit is contained in:
Steffen Schröder
2013-11-13 01:43:12 +01:00
parent 6ce66e1640
commit b389b32d88
7 changed files with 109 additions and 50 deletions

View File

@ -97,6 +97,19 @@ class Chat {
$format = $this->maniaControl->settingManager->getSetting($this, 'ErrorFormat', '$f00');
return $this->sendChat($format . $message, $login);
}
/**
* Send an usage info message to the given login
*
* @param string $message
* @param string $login
* @param string|bool $prefix
* @return bool
*/
public function sendUsageInfo($message, $login = null, $prefix = false) {
$format = $this->maniaControl->settingManager->getSetting($this, 'UsageInfoFormat', '$f80');
return $this->sendChat($format . $message, $login);
}
}
?>