Interface PudelProperties


public interface PudelProperties
Provides core properties about the Pudel bot runtime.

Plugins can access this via PluginContext.getPudel() to check the core version, codename, or user agent string.

Example usage in a @Plugin class:

@OnEnable
public void onEnable(PluginContext context) {
    PudelProperties pudel = context.getPudel();
    context.log("info", "Running on Pudel " + pudel.getVersion()
        + " (" + pudel.getCodename() + ")");
}

  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the release codename (e.g., "Schnauzer").
    Gets the bot name (e.g., "Pudel").
    Gets the HTTP user-agent string used for outgoing requests.
    Gets the semantic version of the core (e.g., "2.2.0").
  • Method Details

    • getName

      String getName()
      Gets the bot name (e.g., "Pudel").
      Returns:
      the bot name
    • getVersion

      String getVersion()
      Gets the semantic version of the core (e.g., "2.2.0").
      Returns:
      the version string
    • getCodename

      String getCodename()
      Gets the release codename (e.g., "Schnauzer").
      Returns:
      the codename string
    • getUserAgent

      String getUserAgent()
      Gets the HTTP user-agent string used for outgoing requests.
      Returns:
      the user-agent string