From 42671c5c199dd9e91c774d8c9d30da9e12f1b695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Morais?= Date: Wed, 27 Aug 2025 06:26:46 -0300 Subject: [PATCH] Update settings.php (#321) * Update settings.php added Transferable Coins to the store dropdown menu in the admin area * Adjust code a bit --------- Co-authored-by: slawkens --- system/settings.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/system/settings.php b/system/settings.php index 71cbc34e..904c46f5 100644 --- a/system/settings.php +++ b/system/settings.php @@ -28,6 +28,15 @@ if (!IS_CLI) { $siteURL = $serverUrl . $baseDir; } +$donateColumnOptions = [ + 'premium_points' => 'Premium Points', + 'coins' => 'Coins', +]; + +if (HAS_ACCOUNT_COINS_TRANSFERABLE || HAS_ACCOUNT_TRANSFERABLE_COINS) { + $donateColumnOptions[ACCOUNT_COINS_TRANSFERABLE_COLUMN] = 'Coins Transferable'; +} + return [ 'name' => 'MyAAC', 'settings' => [ @@ -1598,7 +1607,7 @@ Sent by MyAAC,
'name' => 'Donate Column', 'type' => 'options', 'desc' => 'What to give to player after donation - what column in accounts table to use.', - 'options' => ['premium_points' => 'Premium Points', 'coins' => 'Coins'], + 'options' => $donateColumnOptions, 'default' => 'premium_points', 'callbacks' => [ 'beforeSave' => function($key, $value, &$errorMessage) {