public class Config extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
allow_broken_items
Whether players are allowed to sell/buy broken items
|
boolean |
allow_decimals_in_price
Whether prices may contain decimals
|
boolean |
append_potion_level_to_item_name
Whether the extension of a potion or tipped arrow (if available) should be appended to the item name.
|
List<String> |
areashop_remove_shop_events
The events of AreaShop when shops in that region should be removed
|
boolean |
auto_calculate_item_amount
Whether the item amount should be calculated to fit the available money or inventory space
|
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.
|
boolean |
buy_greater_or_equal_sell
Whether the buy price of a shop must be greater than or equal the sell price
|
String |
database_mysql_database
The database used for ShopChest's MySQL database
|
String |
database_mysql_host
The hostname used in ShopChest's MySQL database
|
String |
database_mysql_password
The password used in ShopChest's MySQL database
|
int |
database_mysql_ping_interval
The interval in seconds, a ping is sent to the MySQL server
|
int |
database_mysql_port
The port used for ShopChest's MySQL database
|
String |
database_mysql_username
The username used in ShopChest's MySQL database
|
Database.DatabaseType |
database_type
The database type used for ShopChest.
|
int |
default_limit
The default shop limit for players whose limit is not set via a permission
|
boolean |
enable_areashop_integration
Whether AreaShop integration should be enabled
|
boolean |
enable_askyblock_integration
Whether ASkyBlock integration should be enabled
|
boolean |
enable_authme_integration
Whether AuthMe integration should be enabled
|
boolean |
enable_debug_log
Whether the debug log file should be created
|
boolean |
enable_griefprevention_integration
Whether GriefPrevention integration should be enabled
|
boolean |
enable_hologram_interaction
Whether hologram interaction should be enabled
|
boolean |
enable_islandworld_integration
Whether IslandWorld integration should be enabled
|
boolean |
enable_plotsquared_integration
Whether PlotSquared integration should be enabled
|
boolean |
enable_quality_mode
Whether quality mode should be enabled
|
boolean |
enable_towny_integration
Whether Towny integration should be enabled
|
boolean |
enable_uskyblock_integration
Whether uSkyBlock integration should be enabled
|
boolean |
enable_vendor_messages
Whether the vendor of the shop should get messages about buys and sells
|
boolean |
enable_worldguard_integration
Whether WorldGuard integration should be enabled
|
boolean |
exclude_admin_shops
Whether admin shops should be excluded of the shop limits
|
boolean |
explosion_protection
Whether shops should be protected by explosions
|
boolean |
hologram_fixed_bottom
Whether the hologram's location should be fixed at the bottom
|
double |
hologram_lift
Amount every hologram should be lifted
|
boolean |
hopper_protection
Whether shops should be protected by hoppers
|
boolean |
invert_mouse_buttons
Whether the mouse buttons are inverted
Default:
Right-Click: Buy Left-Click: Sell |
String |
language_file
The language file to use (e.g en_US, de_DE)
|
String |
main_command_name
The main command of ShopChest (default: shop)
|
double |
maximal_distance
The maximum distance between a player and a shop to see the hologram
|
double |
maximal_item_distance
The maximum distance between a player and a shop to see the shop item
|
Set<String> |
maximum_prices
The maximum prices for certain items
This returns a key set, which contains e.g "STONE", "STONE:1", of the
maximum-prices section in ShopChest's config. |
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.
|
boolean |
only_show_first_shop_in_sight
Whether only the shop a player is looking at should be shown to him
|
boolean |
only_show_shops_in_sight
Whether only the shops a player has in sight should be shown to him
|
boolean |
remove_shop_on_error
Whether shops should automatically be removed from the database if an error occurred while loading
(e.g. when no chest is found at a shop's location)
|
double |
shop_creation_price_admin
The price a player has to pay in order to create an admin shop
|
double |
shop_creation_price_normal
The price a player has to pay in order to create a normal shop
|
org.bukkit.inventory.ItemStack |
shop_info_item
The item with which a player can click a shop to retrieve information
|
boolean |
show_shop_items
Whether the shop items should be shown
|
List<String> |
towny_shop_plots_king
The types of town plots the king is allowed to create shops in
|
List<String> |
towny_shop_plots_mayor
The types of town plots the mayor is allowed to create shops in
|
List<String> |
towny_shop_plots_residents
The types of town plots residents are allowed to create shops in
|
ShopUpdateEvent.UpdateQuality |
update_quality
The quality of hologram and item updating (performance saving, or better quality)
|
boolean |
wg_allow_create_shop_default
The default value for the custom WorldGuard flag 'create-shop'
|
boolean |
wg_allow_use_admin_shop_default
The default value for the custom WorldGuard flag 'use-admin-shop'
|
boolean |
wg_allow_use_shop_default
The default value for the custom WorldGuard flag 'use-shop'
|
Modifier and Type | Method and Description |
---|---|
void |
add(String property,
String value)
Add a value to a list in the config.yml.
|
LanguageConfiguration |
getLanguageConfig() |
void |
reload(boolean firstLoad,
boolean langReload,
boolean showMessages)
Reload the configuration values from config.yml
|
void |
remove(String property,
String value) |
void |
set(String property,
String value)
Set a configuration value
Config is automatically reloaded
|
public ShopUpdateEvent.UpdateQuality update_quality
public org.bukkit.inventory.ItemStack shop_info_item
public boolean wg_allow_create_shop_default
public boolean wg_allow_use_admin_shop_default
public boolean wg_allow_use_shop_default
public List<String> towny_shop_plots_residents
public List<String> towny_shop_plots_mayor
public List<String> towny_shop_plots_king
public List<String> areashop_remove_shop_events
public String database_mysql_host
public int database_mysql_port
public String database_mysql_database
public String database_mysql_username
public String database_mysql_password
public Database.DatabaseType database_type
public int database_mysql_ping_interval
public 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 minimum price for an item, you have to get the doubleminimum-prices.<key>
.public Set<String> maximum_prices
The maximum prices for certain items
This returns a key set, which contains e.g "STONE", "STONE:1", of themaximum-prices
section in ShopChest's config.
To actually retrieve the maximum price for an item, you have to get the double maximum-prices.<key>
.public 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 boolean allow_decimals_in_price
public boolean buy_greater_or_equal_sell
public boolean hopper_protection
public boolean explosion_protection
public boolean enable_quality_mode
public boolean enable_hologram_interaction
public boolean enable_debug_log
public boolean enable_worldguard_integration
public boolean enable_towny_integration
public boolean enable_authme_integration
public boolean enable_plotsquared_integration
public boolean enable_uskyblock_integration
public boolean enable_askyblock_integration
public boolean enable_islandworld_integration
public boolean enable_griefprevention_integration
public boolean enable_areashop_integration
public boolean enable_vendor_messages
public boolean exclude_admin_shops
public boolean append_potion_level_to_item_name
public boolean show_shop_items
public boolean allow_broken_items
public boolean only_show_shops_in_sight
public boolean only_show_first_shop_in_sight
public boolean remove_shop_on_error
Whether shops should automatically be removed from the database if an error occurred while loading
(e.g. when no chest is found at a shop's location)public boolean auto_calculate_item_amount
public boolean invert_mouse_buttons
Whether the mouse buttons are inverted
Default:public boolean hologram_fixed_bottom
public double hologram_lift
public double maximal_distance
public double maximal_item_distance
public double shop_creation_price_normal
public double shop_creation_price_admin
public int default_limit
public String main_command_name
public String language_file
public Config(ShopChest plugin)
public void set(String property, String value)
Set a configuration value
Config is automatically reloadedproperty
- Property to changevalue
- Value to setpublic void add(String property, String value)
property
- Location of the listvalue
- Value to addpublic void reload(boolean firstLoad, boolean langReload, boolean showMessages)
public LanguageConfiguration getLanguageConfig()
LanguageConfiguration
Copyright © 2017. All rights reserved.