Class SkriptEventHandler

java.lang.Object
ch.njol.skript.SkriptEventHandler

public abstract class SkriptEventHandler extends Object
  • Field Details

    • listenCancelled

      public static final Set<Class<? extends org.bukkit.event.Event>> listenCancelled
      Events which are listened even if they are cancelled.
  • Constructor Details

    • SkriptEventHandler

      public SkriptEventHandler()
  • Method Details

    • logEventStart

      public static void logEventStart(org.bukkit.event.Event e)
    • logEventEnd

      public static void logEventEnd()
    • logTriggerStart

      public static void logTriggerStart(Trigger t)
    • logTriggerEnd

      public static void logTriggerEnd(Trigger t)
    • addTrigger

      public static void addTrigger(Class<? extends org.bukkit.event.Event>[] events, Trigger trigger)
    • addSelfRegisteringTrigger

      public static void addSelfRegisteringTrigger(Trigger t)
      Stores a self registered trigger to allow for it to be unloaded later on.
      Parameters:
      t - Trigger that has already been registered to its event
    • containsSuperclass

      public static boolean containsSuperclass(Set<Class<?>> classes, Class<?> c)