Package ch.njol.skript.events
Class EvtFirstJoin
java.lang.Object
ch.njol.skript.lang.SkriptEvent
ch.njol.skript.events.EvtFirstJoin
- All Implemented Interfaces:
Debuggable
,SyntaxElement
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
check(org.bukkit.event.Event e)
Checks whether the given Event applies, e.g.boolean
init(Literal<?>[] args, int matchedPattern, SkriptParser.ParseResult parser)
called just after the constructortoString(@Nullable org.bukkit.event.Event e, boolean debug)
Methods inherited from class ch.njol.skript.lang.SkriptEvent
getEventClasses, getEventPriority, init, isEventPrioritySupported, shouldLoadEvent, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.njol.skript.lang.SyntaxElement
getParser
-
Constructor Details
-
EvtFirstJoin
public EvtFirstJoin()
-
-
Method Details
-
init
Description copied from class:SkriptEvent
called just after the constructor- Specified by:
init
in classSkriptEvent
-
check
public boolean check(org.bukkit.event.Event e)Description copied from class:SkriptEvent
Checks whether the given Event applies, e.g. the leftclick event is only part of the PlayerInteractEvent, and this checks whether the player leftclicked or not. This method will only be called for events this SkriptEvent is registered for.- Specified by:
check
in classSkriptEvent
- Returns:
- true if this is SkriptEvent is represented by the Bukkit Event or false if not
-
toString
- Parameters:
e
- The event to get information to. This is always null if debug == false.debug
- If true this should print more information, if false this should print what is shown to the end user- Returns:
- String representation of this object
-