Class ContextlessEvent

java.lang.Object
org.bukkit.event.Event
ch.njol.skript.lang.util.ContextlessEvent

public final class ContextlessEvent extends Event
This class is intended for usage in places of Skript that require an Event. Of course, not everything is always context/event dependent. For example, if one were to load a SectionNode or parse something into a SyntaxElement, and ParserInstance.getCurrentEvents() was null or empty, the resulting elements would not be dependent upon a specific Event. Thus, there would be no reason for an Event to be required. So, this classes exists to avoid dangerously passing null in these places.
See Also:
  • Method Details