From a6e20fa62c48588d807352d48d2a6409e911d297 Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 9 Jun 2020 01:43:07 +0200 Subject: [PATCH] Change name to settings --- .gitignore | 4 +-- plugins/example-options-plugin/settings.php | 35 ------------------- ...ugin.json => example-settings-plugin.json} | 6 ++-- plugins/example-settings-plugin/settings.php | 32 +++++++++++++++++ 4 files changed, 37 insertions(+), 40 deletions(-) delete mode 100644 plugins/example-options-plugin/settings.php rename plugins/{example-options-plugin.json => example-settings-plugin.json} (60%) create mode 100644 plugins/example-settings-plugin/settings.php diff --git a/.gitignore b/.gitignore index 1b4b6097..83eb0618 100644 --- a/.gitignore +++ b/.gitignore @@ -37,8 +37,8 @@ plugins/* !plugins/example.json !plugins/account-create-hint.json !plugins/account-create-hint -!plugins/example-options-plugin.json -!plugins/example-options-plugin +!plugins/example-settings-plugin.json +!plugins/example-settings-plugin landing # others/rest diff --git a/plugins/example-options-plugin/settings.php b/plugins/example-options-plugin/settings.php deleted file mode 100644 index cba9502d..00000000 --- a/plugins/example-options-plugin/settings.php +++ /dev/null @@ -1,35 +0,0 @@ - 'gesior_shop', - 'options' => [ - '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
- doesn't matter for othire and other servers without addons
- you can use this outfit generator: http://sleqqus.idl.pl/tlg
- Format: head,body,legs,feet", - ], - '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.", - ], - ], -]; \ No newline at end of file diff --git a/plugins/example-options-plugin.json b/plugins/example-settings-plugin.json similarity index 60% rename from plugins/example-options-plugin.json rename to plugins/example-settings-plugin.json index df89a3ad..4f4b272d 100644 --- a/plugins/example-options-plugin.json +++ b/plugins/example-settings-plugin.json @@ -1,12 +1,12 @@ { "enabled": 1, - "name": "Example Options Plugin", + "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.8.0" + "myaac": "0.9.0" }, - "options": "plugins/example-options-plugin/options.php" + "settings": "plugins/example-settings-plugin/settings.php" } diff --git a/plugins/example-settings-plugin/settings.php b/plugins/example-settings-plugin/settings.php new file mode 100644 index 00000000..6ba9bd3c --- /dev/null +++ b/plugins/example-settings-plugin/settings.php @@ -0,0 +1,32 @@ + [ + '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
+ doesn't matter for othire and other servers without addons
+ you can use this outfit generator: http://sleqqus.idl.pl/tlg
+ Format: head,body,legs,feet", + ], + '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.", + ], +]; \ No newline at end of file