Skip to main content

ConfigFile

Tell the config system to load config. ONLY LOAD NO SAVE

Only provide basic usage. Use Cloth Config for advanced functions.

Gson will be used so you can use Gson features. Use AnnotationApi.getConfig to get your config.

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface ConfigFile {
/**
* The config folder.
* @return {@link String }
*/
String path();

/**
* The config file without folder path.
* @return {@link String }
*/
String file();

/**
* Automatically create with default values when config file not found.
* @return boolean
*/
boolean autoCreate() default true;
}