Module watamebot

Annotation Interface PluginConfiguration


@Target(TYPE) @Retention(RUNTIME) public @interface PluginConfiguration
Annotation used on Plugin classes to request the loading of custom configuration files.
Author:
Ashley
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    @NotNull String
    The path to the default configuration file inside the jar.
    @NotNull String
    The ID of this configuration.
    @NotNull String
    The path to store the configuration file outside the jar file.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    @NotNull ConfigType
    The type of configuration to parse as.
  • Element Details

    • identifier

      @NotNull @NotNull String identifier
      The ID of this configuration.
      Returns:
      Returns a string representing the ID of this configuration
    • defaultFile

      @NotNull @NotNull String defaultFile
      The path to the default configuration file inside the jar.
      Returns:
      Returns a string pointing to the default configuration file
    • outputFile

      @NotNull @NotNull String outputFile
      The path to store the configuration file outside the jar file. This path is relative to the plugin configuration directory.
      Returns:
      Returns the path to store the configuration outside the jar relative to the plugin configuration directory