mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
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 <slawkens@gmail.com>
This commit is contained in:
@@ -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,<br/>
|
||||
'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) {
|
||||
|
Reference in New Issue
Block a user