mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
Remove useless config variable
This commit is contained in:
parent
1e5e576bd0
commit
1ba2381437
@ -272,6 +272,5 @@ $config = array(
|
|||||||
'date_timezone' => 'Europe/Berlin', // more info at http://php.net/manual/en/timezones.php
|
'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
|
'footer_show_load_time' => true, // display load time of the page in the footer
|
||||||
|
|
||||||
'monsters' => array(),
|
|
||||||
'npc' => array()
|
'npc' => array()
|
||||||
);
|
);
|
@ -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 = new OTS_Player();
|
||||||
$player->find($name);
|
$player->find($name);
|
||||||
if($player->isLoaded()) {
|
if($player->isLoaded()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user