Class Hook<P extends org.bukkit.plugin.Plugin>

java.lang.Object
ch.njol.skript.hooks.Hook<P>
Direct Known Subclasses:
BiomeHook, RegionsPlugin, VaultHook

public abstract class Hook<P extends org.bukkit.plugin.Plugin> extends Object
  • Field Details

    • plugin

      public final P extends org.bukkit.plugin.Plugin plugin
  • Constructor Details

  • Method Details

    • getPlugin

      public final P getPlugin()
    • loadClasses

      protected void loadClasses() throws IOException
      Throws:
      IOException
    • getName

      public abstract String getName()
      Returns:
      The hooked plugin's exact name
    • init

      protected boolean init()
      Called when the plugin has been successfully hooked