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.Component
boolean
void
setCancelled
(boolean cancelled) void
setCancelReason
(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:
setCancelled
in interfaceCancellable
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-