Player and Server Commands

This commit is contained in:
Steffen Schröder
2013-12-05 00:30:10 +01:00
parent 1871617ac9
commit c5e0410b08
3 changed files with 370 additions and 71 deletions

View File

@ -3,6 +3,7 @@
namespace ManiaControl\Players;
require_once __DIR__ . '/Player.php';
require_once __DIR__ . '/PlayerCommands.php';
use ManiaControl\Formatter;
use ManiaControl\ManiaControl;
@ -27,6 +28,7 @@ class PlayerManager implements CallbackListener {
* Private properties
*/
private $maniaControl = null;
private $playerCommands = null;
private $playerList = array();
/**
@ -38,6 +40,8 @@ class PlayerManager implements CallbackListener {
$this->maniaControl = $maniaControl;
$this->initTables();
$this->playerCommands = new PlayerCommands($maniaControl);
// Init settings
$this->maniaControl->settingManager->initSetting($this, self::SETTING_JOIN_LEAVE_MESSAGES, false);