create character name config moved to settings

This commit is contained in:
slawkens
2023-07-22 10:57:42 +02:00
parent d82e3a21e5
commit aad175548a
7 changed files with 32 additions and 20 deletions

View File

@@ -28,8 +28,8 @@ else
if($points < $config['account_change_character_name_points'])
$errors[] = 'You need ' . $config['account_change_character_name_points'] . ' premium points to change name. You have <b>'.$points.'<b> premium points.';
$minLength = config('character_name_min_length');
$maxLength = config('character_name_max_length');
$minLength = setting('core.create_character_name_min_length');
$maxLength = setting('core.create_character_name_max_length');
if(empty($errors) && empty($name))
$errors[] = 'Please enter a new name for your character!';