2011-06-11 17:36:55 +02:00
|
|
|
package com.Acrobot.ChestShop.Config;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Acrobot
|
|
|
|
*/
|
|
|
|
public enum Property {
|
2011-07-15 21:45:26 +02:00
|
|
|
PREFERRED_ECONOMY_PLUGIN("", "Preferred economy plugin (iConomy, BOSEconomy, Essentials). If you do not want to specify this, leave it blank."),
|
2011-07-02 20:34:14 +02:00
|
|
|
REVERSE_BUTTONS(false, "If true, people will buy with left-click and sell with right-click."),
|
|
|
|
SERVER_ECONOMY_ACCOUNT("", "Economy account's name you want Admin Shops to be assigned to"),
|
2011-07-05 19:08:55 +02:00
|
|
|
ADMIN_SHOP_NAME("Admin Shop", "First line of your admin shop should look like this"),
|
2011-08-13 12:08:34 +02:00
|
|
|
SHOP_CREATION_PRICE(0, "Amount of money player must pay to create a shop"),
|
2011-06-11 17:36:55 +02:00
|
|
|
LOG_TO_FILE(false, "If true, plugin will log transactions in its own file"),
|
|
|
|
LOG_TO_CONSOLE(true, "Do you want ChestShop's messages to show up in console?"),
|
2011-07-05 19:08:55 +02:00
|
|
|
LOG_TO_DATABASE(false, "If true, plugin will log transactions in EBean database"),
|
2011-06-11 17:36:55 +02:00
|
|
|
GENERATE_STATISTICS_PAGE(false, "If true, plugin will generate shop statistics webpage."),
|
|
|
|
STATISTICS_PAGE_PATH("plugins/ChestShop/website.html", "Where should your generated website be saved?"),
|
|
|
|
RECORD_TIME_TO_LIVE(600, "How long should transaction information be stored?"),
|
2011-07-23 21:00:47 +02:00
|
|
|
STATISTICS_PAGE_GENERATION_INTERVAL(60, "How often should the website be generated?"),
|
2011-07-02 20:34:14 +02:00
|
|
|
USE_BUILT_IN_PROTECTION(true, "Do you want to use built-in protection against chest destruction?"),
|
2011-06-11 17:36:55 +02:00
|
|
|
PROTECT_CHEST_WITH_LWC(false, "Do you want to protect shop chests with LWC?"),
|
2011-07-05 19:08:55 +02:00
|
|
|
PROTECT_SIGN_WITH_LWC(false, "Do you want to protect shop signs with LWC?"),
|
2011-08-13 12:08:34 +02:00
|
|
|
MASK_CHESTS_AS_OTHER_BLOCKS(false, "Do you want to mask shop chests as other blocks? HIGHLY EXPERIMENTAL, CAN LAG!"),
|
|
|
|
SHOW_MESSAGE_OUT_OF_STOCK(true, "Do you want to show \"Out of stock\" messages?"),
|
|
|
|
SHOW_TRANSACTION_INFORMATION_CLIENT(true, "Do you want to show \"You bought/sold... \" messages?"),
|
|
|
|
SHOW_TRANSACTION_INFORMATION_OWNER(true, "Do you want to show \"Somebody bought/sold... \" messages?");
|
2011-06-11 17:36:55 +02:00
|
|
|
|
2011-07-02 20:34:14 +02:00
|
|
|
|
2011-07-23 21:00:47 +02:00
|
|
|
private final Object value;
|
|
|
|
private final String comment;
|
2011-06-11 17:36:55 +02:00
|
|
|
|
|
|
|
private Property(Object value, String comment) {
|
|
|
|
this.value = value;
|
|
|
|
this.comment = comment;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Object getValue() {
|
|
|
|
return (value instanceof String ? "\"" + value + '\"' : value);
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getComment() {
|
|
|
|
return comment;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
|
|
|
return name();
|
|
|
|
}
|
|
|
|
}
|