Class PluginBase

java.lang.Object
org.bukkit.plugin.PluginBase
All Implemented Interfaces:
LifecycleEventOwner, CommandExecutor, TabCompleter, TabExecutor, Plugin
Direct Known Subclasses:
JavaPlugin

public abstract class PluginBase extends Object implements Plugin
Represents a base Plugin

Extend this class if your plugin is not a JavaPlugin

  • Constructor Details

    • PluginBase

      public PluginBase()
  • Method Details

    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getName

      @NotNull public final @NotNull String getName()
      Description copied from interface: Plugin
      Returns the name of the plugin.

      This should return the bare name of the plugin and should be used for comparison.

      Specified by:
      getName in interface Plugin
      Returns:
      name of the plugin