Package com.loohp.limbo.events.player
Class PlayerLoginEvent
java.lang.Object
com.loohp.limbo.events.Event
com.loohp.limbo.events.player.PlayerLoginEvent
- All Implemented Interfaces:
Cancellable
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerLoginEvent(ClientConnection connection, boolean cancelled, net.kyori.adventure.text.Component cancelReason) -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.ComponentbooleanvoidsetCancelled(boolean cancelled) voidsetCancelReason(net.kyori.adventure.text.Component cancelReason)
-
Constructor Details
-
PlayerLoginEvent
public PlayerLoginEvent(ClientConnection connection, boolean cancelled, net.kyori.adventure.text.Component cancelReason)
-
-
Method Details
-
getConnection
-
getCancelReason
public net.kyori.adventure.text.Component getCancelReason() -
setCancelReason
public void setCancelReason(net.kyori.adventure.text.Component cancelReason) -
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceCancellable
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-