Package net.fateuhc.plugin.api.managers
Class ConfigManager
java.lang.Object
net.fateuhc.plugin.api.managers.ConfigManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the list of active configs aliases.Retrieves the list of active config names.Retrieves the list of active configs.Retrieves the list of config options.Retrieves the list of config aliases.Retrieves the list of config names.getByAlias(String alias) Retrieves the configuration with the given alias.getByConfig(Config source) Retrieves the configuration for the given source.Retrieves the configuration with the given name.Deprecated.Deprecated.UsegetAllConfigs()instead.voidregisterConfig(boolean active, boolean defaultActive, boolean lobbyModeOnlyEdit, com.cryptomorin.xseries.XMaterial material, String alias, String name, String... description) Register a configuration option within FateUHC.voidregisterConfig(boolean active, boolean defaultActive, boolean lobbyModeOnlyEdit, org.bukkit.Material material, String alias, String name, String... description) Register a configuration option within FateUHC.voidregisterConfig(boolean active, boolean lobbyModeOnlyEdit, com.cryptomorin.xseries.XMaterial material, String alias, String name, String... description) Register a configuration option within FateUHC.voidregisterConfig(int amount, boolean lobbyModeOnlyEdit, com.cryptomorin.xseries.XMaterial material, String alias, String name, String... description) Register a configuration option within FateUHC.voidregisterConfig(int amount, int defaultAmount, boolean editable, boolean lobbyModeOnlyEdit, com.cryptomorin.xseries.XMaterial material, String alias, String name, String... description) Register a configuration option within FateUHC.voidregisterConfig(int amount, int defaultAmount, boolean editable, boolean lobbyModeOnlyEdit, org.bukkit.Material material, String alias, String name, String... description) Register a configuration option within FateUHC.voidsetConfigurations(List<Config> configurations) Deprecated.
-
Constructor Details
-
ConfigManager
public ConfigManager()
-
-
Method Details
-
registerConfig
public void registerConfig(boolean active, boolean defaultActive, boolean lobbyModeOnlyEdit, com.cryptomorin.xseries.XMaterial material, String alias, String name, String... description) Register a configuration option within FateUHC.- Parameters:
active- Is the configuration active?defaultActive- Is the configuration active by default?lobbyModeOnlyEdit- Should it only be able to be toggled in lobby mode only?material- What material should the item be in the menu?alias- What is the alias of the config option?name- What is the name of the config option?description- What is the description of the config option?
-
registerConfig
public void registerConfig(boolean active, boolean defaultActive, boolean lobbyModeOnlyEdit, org.bukkit.Material material, String alias, String name, String... description) Register a configuration option within FateUHC.- Parameters:
active- Is the configuration active?defaultActive- Is the configuration active by default?lobbyModeOnlyEdit- Should it only be able to be toggled in lobby mode only?material- What material should the item be in the menu?alias- What is the alias of the config option?name- What is the name of the config option?description- What is the description of the config option?
-
registerConfig
public void registerConfig(boolean active, boolean lobbyModeOnlyEdit, com.cryptomorin.xseries.XMaterial material, String alias, String name, String... description) Register a configuration option within FateUHC.- Parameters:
active- Is the configuration active?lobbyModeOnlyEdit- Should it only be able to be toggled in lobby mode only?material- What material should the item be in the menu?alias- What is the alias of the config option?name- What is the name of the config option?description- What is the description of the config option?
-
registerConfig
public void registerConfig(int amount, int defaultAmount, boolean editable, boolean lobbyModeOnlyEdit, com.cryptomorin.xseries.XMaterial material, String alias, String name, String... description) Register a configuration option within FateUHC.- Parameters:
amount- What is the amount the config option should have?defaultAmount- What is the default amount the config option should have?lobbyModeOnlyEdit- Should it only be able to be toggled in lobby mode only?material- What material should the item be in the menu?alias- What is the alias of the config option?name- What is the name of the config option?description- What is the description of the config option?
-
registerConfig
public void registerConfig(int amount, int defaultAmount, boolean editable, boolean lobbyModeOnlyEdit, org.bukkit.Material material, String alias, String name, String... description) Register a configuration option within FateUHC.- Parameters:
amount- What is the amount the config option should have?defaultAmount- What is the default amount the config option should have?lobbyModeOnlyEdit- Should it only be able to be toggled in lobby mode only?material- What material should the item be in the menu?alias- What is the alias of the config option?name- What is the name of the config option?description- What is the description of the config option?
-
registerConfig
public void registerConfig(int amount, boolean lobbyModeOnlyEdit, com.cryptomorin.xseries.XMaterial material, String alias, String name, String... description) Register a configuration option within FateUHC.- Parameters:
amount- What is the amount the config option should have?lobbyModeOnlyEdit- Should it only be able to be toggled in lobby mode only?material- What material should the item be in the menu?alias- What is the alias of the config option?name- What is the name of the config option?description- What is the description of the config option?
-
getByName
Retrieves the configuration with the given name.- Parameters:
name- The name of the configuration to retrieve.- Returns:
ConfigData
-
getByAlias
Retrieves the configuration with the given alias.- Parameters:
alias- The alias of the configuration to retrieve.- Returns:
ConfigData
-
getConfig
Deprecated.Retrieves the configuration for the given source.- Parameters:
source- The source configuration.- Returns:
- The configuration object.
-
getByConfig
Retrieves the configuration for the given source.- Parameters:
source- The source configuration.- Returns:
ConfigData
-
getConfigurations
Deprecated.UsegetAllConfigs()instead.Retrieves the list of configurations.- Returns:
- The list of configurations.
-
setConfigurations
Deprecated.Sets the configurations for the UHC instance.- Parameters:
configurations- The list of configurations to set.
-
getActiveConfigs
Retrieves the list of active configs.- Returns:
- A
ListofConfigData.
-
getActiveConfigNames
Retrieves the list of active config names. -
getActiveConfigAliases
Retrieves the list of active configs aliases. -
getAllConfigs
Retrieves the list of config options.- Returns:
- The
ListofConfigData.
-
getAllConfigsName
Retrieves the list of config names. -
getAllConfigsAlias
Retrieves the list of config aliases.
-
getByConfig(net.fateuhc.plugin.api.configuration.Config)instead.