Annotation Type Configuration


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface Configuration
    This annotation is used for define a class as a configuration yaml file, all fields in this file will be loaded using ConfigurationLoader.load(T)
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      @NotNull java.lang.String value
      Name of the file to create/load without the extension
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      @NotNull java.lang.String path
      The path of the file to create/load This value will be appended to Plugin.getDataFolder()
      boolean resource
      Define if the file will be created from plugin resources or if he will be a blank fill when created
    • Element Detail

      • value

        @NotNull
        @NotNull java.lang.String value
        Name of the file to create/load without the extension
        Returns:
        The value of the file
      • path

        @NotNull
        @NotNull java.lang.String path
        The path of the file to create/load This value will be appended to Plugin.getDataFolder()
        Returns:
        The path of the file
        Default:
        ""
      • resource

        boolean resource
        Define if the file will be created from plugin resources or if he will be a blank fill when created
        Returns:
        If the file is created from resource or not
        Default:
        true