Move Join-/Leave-Coloring from Chat to Admin/ColorManager, and add setting to disable
This commit is contained in:
@ -4,6 +4,7 @@ namespace ManiaControl;
|
||||
|
||||
use ManiaControl\Admin\ActionsMenu;
|
||||
use ManiaControl\Admin\AuthenticationManager;
|
||||
use ManiaControl\Admin\ColorManager;
|
||||
use ManiaControl\Bills\BillManager;
|
||||
use ManiaControl\Callbacks\CallbackListener;
|
||||
use ManiaControl\Callbacks\CallbackManager;
|
||||
@ -93,6 +94,10 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
|
||||
* @see getChat()
|
||||
*/
|
||||
private $chat = null;
|
||||
/** @var ColorManager $colorManager
|
||||
* @see getColorManager()
|
||||
*/
|
||||
private $colorManager = null;
|
||||
/** @var \SimpleXMLElement $config
|
||||
* @see getConfig()
|
||||
*/
|
||||
@ -202,6 +207,7 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
|
||||
$this->server = new Server($this);
|
||||
$this->authenticationManager = new AuthenticationManager($this);
|
||||
$this->playerManager = new PlayerManager($this);
|
||||
$this->colorManager = new ColorManager($this);
|
||||
$this->mapManager = new MapManager($this);
|
||||
$this->configurator = new Configurator($this);
|
||||
$this->pluginManager = new PluginManager($this);
|
||||
@ -451,6 +457,15 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
|
||||
return $this->playerManager;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the color manager
|
||||
*
|
||||
* @return ColorManager
|
||||
*/
|
||||
public function getColorManager() {
|
||||
return $this->colorManager;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the setting manager
|
||||
*
|
||||
|
Reference in New Issue
Block a user