Remove useless config variable

This commit is contained in:
slawkens 2020-02-07 01:06:19 +01:00
parent 1e5e576bd0
commit 1ba2381437
2 changed files with 1 additions and 10 deletions

View File

@ -272,6 +272,5 @@ $config = array(
'date_timezone' => 'Europe/Berlin', // more info at http://php.net/manual/en/timezones.php
'footer_show_load_time' => true, // display load time of the page in the footer
'monsters' => array(),
'npc' => array()
);
);

View File

@ -280,14 +280,6 @@ class Validator
}
}
if(isset($config['monsters']))
{
if(in_array($name_lower, $config['monsters'])) {
self::$lastError = 'Your name cannot contains monster name.';
return false;
}
}
$player = new OTS_Player();
$player->find($name);
if($player->isLoaded()) {