Class BungeeConfig
java.lang.Object
me.hsgamer.hscore.bungeecord.config.BungeeConfig
- All Implemented Interfaces:
Config
The BungeeCord Configuration
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBungeeConfig
(File file) Create a new configBungeeConfig
(net.md_5.bungee.api.plugin.Plugin plugin, String filename) Create a new config -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Remove all paths from the configurationboolean
Check if the configuration contains the pathGet the value from the pathgetName()
Get the name of the configurationnet.md_5.bungee.config.Configuration
Get the original instanceGet all values from the pathboolean
isNormalizable
(Object object) Check if the object is normalizableNormalize the library-specific objectvoid
reload()
Reload the configurationvoid
save()
Save the configurationvoid
Set the value to the pathvoid
setup()
Set up the configurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.hsgamer.hscore.config.Config
get, getComment, getComment, getInstance, getInstance, getKeys, getNormalized, getNormalized, getNormalizedValues, isInstance, normalizeObject, remove, setComment, setComment, setIfAbsent, setIfAbsent
-
Constructor Details
-
BungeeConfig
Create a new config- Parameters:
file
- the file
-
BungeeConfig
Create a new config- Parameters:
plugin
- the pluginfilename
- the file name
-
-
Method Details
-
getOriginal
public net.md_5.bungee.config.Configuration getOriginal()Description copied from interface:Config
Get the original instance- Specified by:
getOriginal
in interfaceConfig
- Returns:
- the original instance
-
get
Description copied from interface:Config
Get the value from the path -
set
Description copied from interface:Config
Set the value to the path -
contains
Description copied from interface:Config
Check if the configuration contains the path -
getName
Description copied from interface:Config
Get the name of the configuration -
getValues
Description copied from interface:Config
Get all values from the path -
setup
public void setup()Description copied from interface:Config
Set up the configuration -
clear
public void clear()Description copied from interface:Config
Remove all paths from the configuration -
save
public void save()Description copied from interface:Config
Save the configuration -
reload
public void reload()Description copied from interface:Config
Reload the configuration -
normalize
Description copied from interface:Config
Normalize the library-specific object -
isNormalizable
Description copied from interface:Config
Check if the object is normalizable- Specified by:
isNormalizable
in interfaceConfig
- Parameters:
object
- the object- Returns:
- true if it is
-