Commit e1625896 authored by BertTowne's avatar BertTowne

Better configurations for Java Edition plugins

parent c1c1aaf1
# +--------------------------------------------------------+
# | The following information can be found by going |
# | to https://app.cubedpay.com/, clicking |
# | on "Webstore Settings", and then by clicking |
# | "Integrations" |
# +--------------------------------------------------------+
# Paste the text under the "Public Identifier" section.
# This text should begin with "app_"
appId: ''
# Paste the text under the "Store Secret" section.
# This text should begin with "oauth_"
#
# NOTE: This code should be treated like a password!
# If it falls into the wrong hands, others may be
# able to make unwanted changes to your store!
accessToken: ''
# Paste the text under the "Store ID" section.
# This text should begin with "shop_"
#
# NOTE: While we support multiple stores, it is
# recommended that only advanced users add
# more than one.
shops:
- ''
# +--------------------------------------------------------+
# | The following information can be found by going |
# | to https://app.cubedpay.com/, clicking |
# | on "Webstore Settings", and then by clicking |
# | "Integrations" |
# +--------------------------------------------------------+
# Paste the text under the "Public Identifier" section.
# This text should begin with "app_"
appId: ''
# Paste the text under the "Store Secret" section.
# This text should begin with "oauth_"
#
# NOTE: This code should be treated like a password!
# If it falls into the wrong hands, others may be
# able to make unwanted changes to your store!
accessToken: ''
# Paste the text under the "Store ID" section.
# This text should begin with "shop_"
#
# NOTE: While we support multiple stores, it is
# recommended that only advanced users add
# more than one.
shops:
- ''
......@@ -50,9 +50,9 @@ public class CubedPayPlugin {
ex.printStackTrace();
}
config.getNode("appId").setValue("");
config.getNode("accessToken").setValue("");
config.getNode("shops").setValue(new TypeToken<ArrayList<String>>() {}, new ArrayList<>());
config.getNode("appId").setComment("Paste the text under the \"Public Identifier\" section of your store's \"Integrations\" tab.").setValue("");
config.getNode("accessToken").setComment("Paste the text under the \"Store Secret\" section of your store's \"Integrations\" tab.").setValue("");
config.getNode("shops").setComment("Paste the text under the \"Store ID\" section of your store's \"Integrations\" tab.").setValue(new TypeToken<ArrayList<String>>() {}, new ArrayList<>());
try {
configManager.save(config);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment