Class MainConfig
java.lang.Object
org.bukkit.configuration.MemorySection
org.bukkit.configuration.MemoryConfiguration
org.bukkit.configuration.file.FileConfiguration
org.bukkit.configuration.file.YamlConfiguration
me.wolfyscript.utilities.api.config.YamlConfiguration
me.wolfyscript.customcrafting.configs.MainConfig
- All Implemented Interfaces:
org.bukkit.configuration.Configuration,org.bukkit.configuration.ConfigurationSection
public class MainConfig
extends me.wolfyscript.utilities.api.config.YamlConfiguration
-
Field Summary
Fields inherited from class me.wolfyscript.utilities.api.config.YamlConfiguration
api, configAPI, configFile, defFileName, defPath, plugin, saveAfterValueSetFields inherited from class org.bukkit.configuration.file.YamlConfiguration
BLANK_CONFIG, COMMENT_PREFIXFields inherited from class org.bukkit.configuration.MemoryConfiguration
defaults, optionsFields inherited from class org.bukkit.configuration.MemorySection
map -
Constructor Summary
ConstructorsConstructorDescriptionMainConfig(me.wolfyscript.utilities.api.config.ConfigAPI configAPI, CustomCrafting customCrafting) -
Method Summary
Modifier and TypeMethodDescriptionlongintorg.bukkit.configuration.ConfigurationSectionintorg.bukkit.configuration.ConfigurationSectionvoidinit()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAdvancedWorkbenchEnabled(boolean enabled)voidsetDataVersion(int version)voidsetDisabledRecipes(Set<me.wolfyscript.utilities.util.NamespacedKey> recipes)voidsetLanguage(String lang)voidsetLockDown(boolean lockdown)voidsetPrettyPrinting(boolean prettyPrinting)voidsetResetAdvancedWorkbench(boolean reset)voidsetResetCreatorAfterSave(boolean reset)voidsetResetRecipeBook(boolean reset)voidbooleanMethods inherited from class me.wolfyscript.utilities.api.config.YamlConfiguration
getItem, getItem, load, loadDefaults, onFirstInit, reload, save, setIntervalsToPassMethods inherited from class org.bukkit.configuration.file.YamlConfiguration
buildHeader, convertMapsToSections, loadConfiguration, loadConfiguration, loadFromString, options, parseHeader, saveToStringMethods inherited from class org.bukkit.configuration.file.FileConfiguration
load, load, load, save, saveMethods inherited from class org.bukkit.configuration.MemoryConfiguration
addDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaultsMethods inherited from class org.bukkit.configuration.MemorySection
contains, contains, createPath, createPath, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefault, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLocation, getLocation, getLong, getLong, getLongList, getMapList, getName, getObject, getObject, getOfflinePlayer, getOfflinePlayer, getRoot, getSerializable, getSerializable, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLocation, isLong, isOfflinePlayer, isPrimitiveWrapper, isSet, isString, isVector, mapChildrenKeys, mapChildrenValues, set, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.configuration.ConfigurationSection
contains, contains, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLocation, getLocation, getLong, getLong, getLongList, getMapList, getName, getObject, getObject, getOfflinePlayer, getOfflinePlayer, getRoot, getSerializable, getSerializable, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLocation, isLong, isOfflinePlayer, isSet, isString, isVector, set
-
Constructor Details
-
MainConfig
public MainConfig(me.wolfyscript.utilities.api.config.ConfigAPI configAPI, CustomCrafting customCrafting)
-
-
Method Details
-
init
public void init()- Overrides:
initin classme.wolfyscript.utilities.api.config.YamlConfiguration
-
getCustomCraftingAlias
-
getLanguage
-
setLanguage
-
getDataVersion
public int getDataVersion() -
setDataVersion
public void setDataVersion(int version) -
updateOldCustomItems
public boolean updateOldCustomItems() -
isResetCreatorAfterSave
public boolean isResetCreatorAfterSave() -
setResetCreatorAfterSave
public void setResetCreatorAfterSave(boolean reset) -
resetRecipeBook
public boolean resetRecipeBook() -
setResetRecipeBook
public void setResetRecipeBook(boolean reset) -
isAdvancedWorkbenchEnabled
public boolean isAdvancedWorkbenchEnabled() -
setAdvancedWorkbenchEnabled
public void setAdvancedWorkbenchEnabled(boolean enabled) -
resetAdvancedWorkbench
public boolean resetAdvancedWorkbench() -
setResetAdvancedWorkbench
public void setResetAdvancedWorkbench(boolean reset) -
getAutosaveInterval
public long getAutosaveInterval() -
isAutoSaveMessage
public boolean isAutoSaveMessage() -
getDisabledRecipes
-
setDisabledRecipes
-
isPrettyPrinting
public boolean isPrettyPrinting() -
setPrettyPrinting
public void setPrettyPrinting(boolean prettyPrinting) -
isLockedDown
public boolean isLockedDown() -
toggleLockDown
public void toggleLockDown() -
setLockDown
public void setLockDown(boolean lockdown) -
getDatabaseSettings
public org.bukkit.configuration.ConfigurationSection getDatabaseSettings() -
getLocalStorageSettings
public org.bukkit.configuration.ConfigurationSection getLocalStorageSettings() -
isLocalStorageEnabled
public boolean isLocalStorageEnabled() -
isLocalStorageBeforeDatabase
public boolean isLocalStorageBeforeDatabase() -
isDataOverride
public boolean isDataOverride() -
isDatabaseEnabled
public boolean isDatabaseEnabled() -
getDatabaseHost
-
getDatabasePort
public int getDatabasePort() -
getDatabaseSchema
-
getDatabaseUsername
-
getDatabasePassword
-
isBrewingRecipes
public boolean isBrewingRecipes()
-