- improved configurator menu for mc settings

-> fixed bug caused by 64 entries limit
This commit is contained in:
Steffen Schröder
2014-04-30 05:27:23 +02:00
parent 4e6db622b2
commit fed10c4a59
8 changed files with 269 additions and 187 deletions

View File

@ -137,7 +137,7 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
/**
* @see \ManiaControl\Configurators\ConfiguratorMenu::getMenu()
*/
public function getMenu($width, $height, Script $script) {
public function getMenu($width, $height, Script $script, Player $player) {
$paging = new Paging();
$script->addFeature($paging);
$frame = new Frame();
@ -269,9 +269,7 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
$this->maniaControl->authenticationManager->sendNotAllowed($player);
return;
}
$prefix = explode(".", $configData[3][0]['Name']);
if ($prefix[0] != self::ACTION_PREFIX_SETTING) {
if (!$configData[3] || strpos($configData[3][0]['Name'], self::ACTION_PREFIX_SETTING) !== 0) {
return;
}