Class Config
java.lang.Object
com.plotsquared.core.configuration.Config
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
The names of any default blocks.static @interface
Creates a comment.static class
static @interface
Indicates that a field should be instantiated / created.static @interface
Indicates that a field cannot be modified.static @interface
Any field or class with is not part of the config. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the static fields in a section.static boolean
static void
Set all values in the file (load first to avoid overwriting)static void
Set the value of a specific node
Probably throws some error if you supply non existing keys or invalid values
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
set
Set the value of a specific node
Probably throws some error if you supply non existing keys or invalid values- Parameters:
key
- config nodevalue
- valueroot
- configuration class
-
load
-
save
Set all values in the file (load first to avoid overwriting)- Parameters:
file
- fileroot
- configuration file class
-
getFields
Get the static fields in a section.- Parameters:
clazz
- config section- Returns:
- map or string against object of static fields
-