Annotation Interface ConfigGroup


@Retention(RUNTIME) @Target(TYPE) public @interface ConfigGroup
Annotation that defines the configuration group for a Config interface.

Every configuration interface must be annotated with @ConfigGroup to specify the unique key used for storing configuration values. This key is used as a prefix for all configuration items in the group.

Example usage:


 @ConfigGroup("autofisher")
 public interface AutoFisherConfig extends Config {
     // Configuration items...
 }
 

The configuration values will be stored with keys in the format: groupName.itemKeyName (e.g., autofisher.enableFeature).

See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The key name of the config group used for storing configuration.
  • Element Details

    • value

      String value
      The key name of the config group used for storing configuration.

      This should typically be a lowercase version of your plugin name, with all spaces removed. The key should be stable across versions to preserve user settings.

      For example, the Grand Exchange plugin uses the key name grandexchange.

      Returns:
      the configuration group key name