Package ch.njol.skript.lang
Interface EventRestrictedSyntax
public interface EventRestrictedSyntax
A syntax element that restricts the events it can be used in.
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends org.bukkit.event.Event>[]
Returns all supported events for this syntax element.
-
Method Details
-
supportedEvents
Class<? extends org.bukkit.event.Event>[] supportedEvents()Returns all supported events for this syntax element.Before
SyntaxElement.init(Expression[], int, Kleenean, SkriptParser.ParseResult)
is called, checks to see if the current event is supported by this syntax element. If it is not, an error will be printed and the syntax element will not be initialised.- Returns:
- All supported event classes.
- See Also:
-