public static final class KickedFromServerEvent.DisconnectPlayer extends Object implements KickedFromServerEvent.ServerKickResult
| Modifier and Type | Method and Description |
|---|---|
static KickedFromServerEvent.DisconnectPlayer |
create(net.kyori.text.Component reason)
Deprecated.
Use
create(net.kyori.adventure.text.Component) instead |
static KickedFromServerEvent.DisconnectPlayer |
create(net.kyori.adventure.text.Component reason)
Creates a new
KickedFromServerEvent.DisconnectPlayer with the specified reason. |
net.kyori.text.Component |
getReason()
Deprecated.
|
net.kyori.adventure.text.Component |
getReasonComponent() |
boolean |
isAllowed()
Returns whether or not the event is allowed to proceed.
|
public boolean isAllowed()
ResultedEvent.ResultisAllowed in interface ResultedEvent.Result@Deprecated public net.kyori.text.Component getReason()
public net.kyori.adventure.text.Component getReasonComponent()
@Deprecated public static KickedFromServerEvent.DisconnectPlayer create(net.kyori.text.Component reason)
create(net.kyori.adventure.text.Component) insteadKickedFromServerEvent.DisconnectPlayer with the specified reason.reason - the reason to use when disconnecting the playerpublic static KickedFromServerEvent.DisconnectPlayer create(net.kyori.adventure.text.Component reason)
KickedFromServerEvent.DisconnectPlayer with the specified reason.reason - the reason to use when disconnecting the player