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, saveAfterValueSet
Fields inherited from class org.bukkit.configuration.file.YamlConfiguration
BLANK_CONFIG, COMMENT_PREFIX
Fields inherited from class org.bukkit.configuration.MemoryConfiguration
defaults, options
Fields inherited from class org.bukkit.configuration.MemorySection
map
-
Constructor Summary
ConstructorsConstructorDescriptionMainConfig(me.wolfyscript.utilities.api.config.ConfigAPI configAPI, CustomCrafting customCrafting)
-
Method Summary
Modifier and TypeMethodDescriptionlong
int
org.bukkit.configuration.ConfigurationSection
int
org.bukkit.configuration.ConfigurationSection
void
init()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setAdvancedWorkbenchEnabled(boolean enabled)
void
setDataVersion(int version)
void
setDisabledRecipes(Set<me.wolfyscript.utilities.util.NamespacedKey> recipes)
void
setLanguage(String lang)
void
setLockDown(boolean lockdown)
void
setPrettyPrinting(boolean prettyPrinting)
void
setResetAdvancedWorkbench(boolean reset)
void
setResetCreatorAfterSave(boolean reset)
void
setResetRecipeBook(boolean reset)
void
boolean
Methods inherited from class me.wolfyscript.utilities.api.config.YamlConfiguration
getItem, getItem, load, loadDefaults, onFirstInit, reload, save, setIntervalsToPass
Methods inherited from class org.bukkit.configuration.file.YamlConfiguration
buildHeader, convertMapsToSections, loadConfiguration, loadConfiguration, loadFromString, options, parseHeader, saveToString
Methods inherited from class org.bukkit.configuration.file.FileConfiguration
load, load, load, save, save
Methods inherited from class org.bukkit.configuration.MemoryConfiguration
addDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaults
Methods 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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
init
in 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()
-