diff --git a/config.php b/config.php index 98bf9548..590f22fa 100644 --- a/config.php +++ b/config.php @@ -212,7 +212,8 @@ $config = array( 'quests' => true, 'skills' => true, 'equipment' => true, - 'frags' => false + 'frags' => false, + 'deleted' => false, // should deleted characters from same account be still listed on the list of characters? When enabled it will show that character is "[DELETED]" ), 'quests' => array(), // quests list (displayed in character view), name => storage 'signature_enabled' => true, diff --git a/system/templates/characters.html.twig b/system/templates/characters.html.twig index 0df1cf9c..8624158a 100644 --- a/system/templates/characters.html.twig +++ b/system/templates/characters.html.twig @@ -380,7 +380,7 @@ {% set i = 0 %} {% for player in account_players %} - {% if not player.isHidden() %} + {% if not player.isHidden() and (config('characters')['deleted'] or not player.isDeleted()) %} {% set i = i + 1 %}