test
This commit is contained in:
parent
5bcf0ac4e7
commit
4da55c383e
@ -16,6 +16,7 @@ require_once __DIR__ . '/playerHandler.php';
|
|||||||
require_once __DIR__ . '/pluginHandler.php';
|
require_once __DIR__ . '/pluginHandler.php';
|
||||||
require_once __DIR__ . '/server.php';
|
require_once __DIR__ . '/server.php';
|
||||||
require_once __DIR__ . '/settingManager.php';
|
require_once __DIR__ . '/settingManager.php';
|
||||||
|
require_once __DIR__ . '/settingConfigurator.php';
|
||||||
list($endiantest) = array_values(unpack('L1L', pack('V', 1)));
|
list($endiantest) = array_values(unpack('L1L', pack('V', 1)));
|
||||||
if ($endiantest == 1) {
|
if ($endiantest == 1) {
|
||||||
require_once __DIR__ . '/PhpRemote/GbxRemote.inc.php';
|
require_once __DIR__ . '/PhpRemote/GbxRemote.inc.php';
|
||||||
@ -50,7 +51,7 @@ class ManiaControl {
|
|||||||
public $pluginHandler = null;
|
public $pluginHandler = null;
|
||||||
public $server = null;
|
public $server = null;
|
||||||
public $settingManager = null;
|
public $settingManager = null;
|
||||||
|
public $settingConfigurator = null;
|
||||||
/**
|
/**
|
||||||
* Private properties
|
* Private properties
|
||||||
*/
|
*/
|
||||||
@ -70,6 +71,7 @@ class ManiaControl {
|
|||||||
$this->manialinkIdHandler = new ManialinkIdHandler();
|
$this->manialinkIdHandler = new ManialinkIdHandler();
|
||||||
$this->commands = new Commands($this);
|
$this->commands = new Commands($this);
|
||||||
$this->pluginHandler = new PluginHandler($this);
|
$this->pluginHandler = new PluginHandler($this);
|
||||||
|
$this->settingConfigurator = new SettingConfigurator($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
21
application/core/settingConfigurator.php
Normal file
21
application/core/settingConfigurator.php
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @author Lukas Kremsmayr and steeffeen
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace ManiaControl;
|
||||||
|
|
||||||
|
|
||||||
|
class settingConfigurator {
|
||||||
|
private $maniaControl = null;
|
||||||
|
public function __construct(ManiaControl $maniaControl){
|
||||||
|
$this->maniaControl = $maniaControl;
|
||||||
|
$this->maniaControl->callbacks->registerCallbackHandler(Callbacks::CB_MC_ONINIT, $this, 'onInit');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private function onInit(){
|
||||||
|
|
||||||
|
$this->maniaControl->chat->sendChat("test");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user