Annotation Interface ConfigurationFile
Annotation to mark a class as a configuration holder.
This annotation specifies which configuration file should be used
for the annotated class.
- Since:
- 1.0.0
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Whether to automatically create the configuration file if it doesn't exist.
-
Element Details
-
file
String fileThe path to the configuration file, relative to the plugin's data folder.- Returns:
- The configuration file path
-
createIfNotExists
boolean createIfNotExistsWhether to automatically create the configuration file if it doesn't exist.- Returns:
- True if the file should be created automatically, false otherwise
- Default:
true
-