- improved configurator menu for mc settings
-> fixed bug caused by 64 entries limit
This commit is contained in:
		@@ -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;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user