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