Class Settings
java.lang.Object
studio.magemonkey.genesis.settings.Settings
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleangetProperty(int id) Get propertybooleangetPropertyBoolean(int id, Object input) Get property booleanintgetPropertyInt(int id, Object input, int def) Get property intgetPropertyString(int id, Object input, String def) Get property stringbooleanbooleanbooleangetServerPingingEnabled(boolean checkIfLoadedAlready) booleanbooleanbooleanbooleanbooleanvoidloadConfig(org.bukkit.configuration.ConfigurationSection config) Load configuration settings from configvoidsetBalancePointsVariableEnabled(boolean b) voidsetBalanceVariableEnabled(boolean b) voidsetMetricsEnabled(boolean b) voidsetPurchaseAsyncEnabled(boolean b) voidsetServerPingingEnabled(boolean b) voidsetShopCommandsEnabled(boolean b) voidsetSignsEnabled(boolean b) voidupdate()Update configvoidUpdate a config
-
Field Details
-
HIDE_ITEMS_PLAYERS_DONT_HAVE_PERMISSIONS_FOR
public static final int HIDE_ITEMS_PLAYERS_DONT_HAVE_PERMISSIONS_FOR- See Also:
-
ALLOW_UNSAFE_ENCHANTMENTS
public static final int ALLOW_UNSAFE_ENCHANTMENTS- See Also:
-
ALLOW_SELLING_GREATER_ENCHANTS
public static final int ALLOW_SELLING_GREATER_ENCHANTS- See Also:
-
CLOSE_SHOP_AFTER_PURCHASE
public static final int CLOSE_SHOP_AFTER_PURCHASE- See Also:
-
CLICK_DELAY
public static final int CLICK_DELAY- See Also:
-
SOUND_SHOPITEM_PURCHASE
public static final int SOUND_SHOPITEM_PURCHASE- See Also:
-
SOUND_SHOPITEM_CLICK
public static final int SOUND_SHOPITEM_CLICK- See Also:
-
SOUND_SHOPITEM_NOPERMISSION
public static final int SOUND_SHOPITEM_NOPERMISSION- See Also:
-
SOUND_SHOPITEM_NOTENOUGHMONEY
public static final int SOUND_SHOPITEM_NOTENOUGHMONEY- See Also:
-
SOUND_SHOP_OPEN
public static final int SOUND_SHOP_OPEN- See Also:
-
SOUND_SHOP_CLOSE
public static final int SOUND_SHOP_CLOSE- See Also:
-
SOUND_SHOP_CHANGE_PAGE
public static final int SOUND_SHOP_CHANGE_PAGE- See Also:
-
SOUND_SHOP_CHANGE_SHOP
public static final int SOUND_SHOP_CHANGE_SHOP- See Also:
-
-
Constructor Details
-
Settings
public Settings()
-
-
Method Details
-
loadConfig
public void loadConfig(org.bukkit.configuration.ConfigurationSection config) Load configuration settings from config- Parameters:
config- config to load from
-
update
Update a config- Parameters:
o- config
-
update
public void update()Update config -
getProperty
Get property- Parameters:
id- id of property- Returns:
- property
-
getPropertyBoolean
Get property boolean- Parameters:
id- id of propertyinput- object to get- Returns:
- boolean
-
getPropertyInt
Get property int- Parameters:
id- id of propertyinput- object to getdef- default- Returns:
- int
-
getPropertyString
Get property string- Parameters:
id- id of propertyinput- object to getdef- default- Returns:
- string
-
setPurchaseAsyncEnabled
public void setPurchaseAsyncEnabled(boolean b) -
setServerPingingEnabled
public void setServerPingingEnabled(boolean b) -
getMetricsEnabled
public boolean getMetricsEnabled() -
setMetricsEnabled
public void setMetricsEnabled(boolean b) -
getShopCommandsEnabled
public boolean getShopCommandsEnabled() -
setShopCommandsEnabled
public void setShopCommandsEnabled(boolean b) -
getSignsEnabled
public boolean getSignsEnabled() -
setSignsEnabled
public void setSignsEnabled(boolean b) -
getMoneyEnabled
public boolean getMoneyEnabled() -
getPointsEnabled
public boolean getPointsEnabled() -
getVaultEnabled
public boolean getVaultEnabled() -
getPermissionsEnabled
public boolean getPermissionsEnabled() -
getPurchaseAsync
public boolean getPurchaseAsync() -
getExpUseLevel
public boolean getExpUseLevel() -
getBungeeCordServerEnabled
public boolean getBungeeCordServerEnabled() -
getBalanceVariableEnabled
public boolean getBalanceVariableEnabled() -
setBalanceVariableEnabled
public void setBalanceVariableEnabled(boolean b) -
getBalancePointsVariableEnabled
public boolean getBalancePointsVariableEnabled() -
setBalancePointsVariableEnabled
public void setBalancePointsVariableEnabled(boolean b) -
getTransactionLogEnabled
public boolean getTransactionLogEnabled() -
getServerPingingEnabled
public boolean getServerPingingEnabled(boolean checkIfLoadedAlready) -
getServerPingingFixConnector
public boolean getServerPingingFixConnector() -
getInventoryFullDropItems
public boolean getInventoryFullDropItems() -
getLoadSubFoldersEnabled
public boolean getLoadSubFoldersEnabled() -
getCheckStackSize
public boolean getCheckStackSize() -
getItemAllShowFinalReward
public boolean getItemAllShowFinalReward() -
getAllowSellingDamagedItems
public boolean getAllowSellingDamagedItems() -
getReloadAfterCreateShop
public boolean getReloadAfterCreateShop()
-