feat: Add new account coins setting

This commit is contained in:
slawkens
2025-05-28 13:33:36 +02:00
parent 7d435ff643
commit 28886551e8
2 changed files with 17 additions and 2 deletions

View File

@@ -19,6 +19,8 @@ $templates = Cache::remember('templates', 5 * 60, function () {
});
$defaultTemplate = in_array('kathrine', $templates) ? 'kathrine' : $templates[0];
global $db;
return [
'name' => 'MyAAC',
'settings' => [
@@ -674,6 +676,13 @@ Sent by MyAAC,<br/>
'desc' => 'Default premium points on new account',
'default' => 0,
],
'account_coins' => [
'name' => 'Default Account Coins',
'type' => 'number',
'desc' => 'Default coins on new account',
'hidden' => !$db->hasColumn('accounts', 'coins'),
'default' => 0,
],
'account_mail_change' => [
'name' => 'Account Mail Change Days',
'type' => 'number',