Getting the Plugin name - rodrigoo-r/Harmony GitHub Wiki

Explanation

Harmony automatically detects and registers your plugin's name. This information is used for your plugin logger.

Usage

You can get your plugin name using the getProvidedPluginName method on your plugin class.

[!IMPORTANT] The plugin name is loaded from the plugin.yml file, not the class name. 

Example:

public final class ChatShield extends BackendPlugin {

    @Override
    public void whenInitialize() {
        getProvidedPluginName(); // ChatShield
    }

}