Add categories in tabs, move more settings, revert back getPluginSettings

Categories and sections are now not numbered
Remove example settings plugin
This commit is contained in:
slawkens
2023-02-14 16:03:22 +01:00
parent 50fe38d5fc
commit 07486762dc
7 changed files with 396 additions and 126 deletions

View File

@@ -1,11 +0,0 @@
{
"enabled": 1,
"name": "Example Settings Plugin",
"description": "This is just an example of a Plugin for MyAAC.",
"version": "1.0",
"author": "nobody",
"contact": "nobody@example.org",
"require": {
"myaac": "0.9.0"
}
}

View File

@@ -1,36 +0,0 @@
<?php
return [
'donation_type' => [
'name' => 'Donation Type',
'type' => 'options',
'options' => ['points' => 'Points', 'coins' => 'Coins'],
'default' => 'points',
'desc' => 'What should be added to player account?',
],
'default_outfit_colors' => [
'name' => 'Default Outfit Colors',
'type' => 'text',
'default' => '4,38,87,114',
'desc' => "Default colors of outfits/addons in addons category<br/>
doesn't matter for othire and other servers without addons<br/>
you can use this outfit generator: http://sleqqus.idl.pl/tlg<br/>
Format: head,body,legs,feet",
],
'section_1' => [
'type' => 'section',
'title' => 'Section Test',
],
'just_testing_boolean' => [
'name' => 'Just Testing Boolean',
'type' => 'boolean',
'default' => false,
'desc' => "Some description.",
],
'just_testing_number' => [
'name' => 'Just Testing Number',
'type' => 'number',
'default' => 999,
'desc' => "Some description.",
],
];

View File

@@ -39,5 +39,6 @@
"redirect_from": "/redirectExample",
"redirect_to": "account/manage"
}
}
},
"settings": "plugins/your-plugin-folder/settings.php"
}