public class Config extends Object
Modifier and Type | Field and Description |
---|---|
static List<String> |
blacklist
List containing items, of which players can't create a shop
If this list contains an item (e.g "STONE", "STONE:1"), it's in the blacklist.
|
static boolean |
buy_greater_or_equal_sell
Whether the buy price of a shop must be greater than or equal the sell price
|
static String |
database_mysql_database
The database used for ShopChest's MySQL database
|
static String |
database_mysql_host
The hostname used in ShopChest's MySQL database
|
static String |
database_mysql_password
The password used in ShopChest's MySQL database
|
static int |
database_mysql_port
The port used for ShopChest's MySQL database
|
static String |
database_mysql_username
The username used in ShopChest's MySQL database
|
static int |
database_reconnect_attempts
The amount of attempts, ShopChest tries to reconnect to the database, when the connection is lost, until giving up
|
static Database.DatabaseType |
database_type
The database type used for ShopChest.
|
static int |
default_limit
The default shop limit for players and groups that are not listed in
shopLimits_player or in shopLimits_group |
static boolean |
enable_broadcast
Whether broadcast messages should be enabled
|
static boolean |
exclude_admin_shops
Whether admin shops should be excluded of the shop limits
|
static boolean |
explosion_protection
Whether shops should be protected by explosions
|
static boolean |
hopper_protection
Whether shops should be protected by hoppers
|
static String |
language_file
The language file to use (e.g en_US, de_DE)
|
static String |
main_command_name
The main command of ShopChest (default: shop)
|
static double |
maximal_distance
The maximum distance between a player and a shop to see the hologram
|
static Set<String> |
minimum_prices
The minimum prices for certain items
This returns a key set, which contains e.g "STONE", "STONE:1", of the minimum-prices section in ShopChest's config.
|
static double |
shop_creation_price_admin
The price a player has to pay in order to create an admin shop
|
static double |
shop_creation_price_normal
The price a player has to pay in order to create a normal shop
|
static Set<String> |
shopLimits_group
The shop limits of certain groups
This returns a key set, which contains the group names, of the shop-limits.group section in ShopChest's config.
|
static Set<String> |
shopLimits_player
The shop limits of certain players
This returns a key set, which contains the player names, of the shop-limits.player section in ShopChest's config.
|
Constructor and Description |
---|
Config() |
public static String database_mysql_host
public static int database_mysql_port
public static String database_mysql_database
public static String database_mysql_username
public static String database_mysql_password
public static Database.DatabaseType database_type
public static int database_reconnect_attempts
public static Set<String> minimum_prices
The minimum prices for certain items
This returns a key set, which contains e.g "STONE", "STONE:1", of the minimum-prices section in ShopChest's config. To actually retrieve the price for an item, you have to get the Double minimum-prices.key.public static Set<String> shopLimits_group
The shop limits of certain groups
This returns a key set, which contains the group names, of the shop-limits.group section in ShopChest's config. To actually retrieve the limits for a group, you have to get the Integer shop-limits.group.key.public static Set<String> shopLimits_player
The shop limits of certain players
This returns a key set, which contains the player names, of the shop-limits.player section in ShopChest's config. To actually retrieve the limits for a player, you have to get the Integer shop-limits.player.key.public static List<String> blacklist
List containing items, of which players can't create a shop
If this list contains an item (e.g "STONE", "STONE:1"), it's in the blacklist.public static boolean buy_greater_or_equal_sell
public static boolean hopper_protection
public static boolean explosion_protection
public static boolean enable_broadcast
public static boolean exclude_admin_shops
public static double maximal_distance
public static double shop_creation_price_normal
public static double shop_creation_price_admin
public static int default_limit
shopLimits_player
or in shopLimits_group
public static String main_command_name
public static String language_file
Copyright © 2016. All rights reserved.