From 8632cd319190fb7cba89d9262e11150a2951c99e Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 14 Jan 2026 19:44:56 +0100 Subject: [PATCH] Add setting core.vocations for backward compatibility --- system/settings.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/system/settings.php b/system/settings.php index e1b0fa1a..8a49a218 100644 --- a/system/settings.php +++ b/system/settings.php @@ -319,6 +319,34 @@ return [ }, ], ], + /** + * @deprecated + * To be removed in v3.0 + */ + 'vocations_amount' => [ + 'hidden' => true, + 'type' => 'number', + //'name' => 'Vocations Amount', + //'desc' => 'How many basic vocations your server got (without promotion)', + 'default' => 4, + 'callbacks' => [ + 'get' => function () { + return config('vocations_amount'); + }, + ], + ], + 'vocations' => [ + 'hidden' => true, + 'type' => 'textarea', + //'name' => 'Vocation Names', + //'desc' => 'Separated by comma. Must be in the same order as in vocations.xml, starting with id: 0.', + 'default' => 'None, Sorcerer, Druid, Paladin, Knight, Master Sorcerer, Elder Druid,Royal Paladin, Elite Knight', + 'callbacks' => [ + 'get' => function () { + return config('vocations'); + }, + ], + ], [ 'type' => 'category', 'title' => 'Database',