public static final class KickedFromServerEvent.Notify extends Object implements KickedFromServerEvent.ServerKickResult
KickedFromServerEvent.DisconnectPlayer
result.Modifier and Type | Method and Description |
---|---|
static KickedFromServerEvent.Notify |
create(Component message)
Notifies the player with the specified message but does nothing else.
|
Component |
getMessage() |
boolean |
isAllowed()
Returns whether or not the event is allowed to proceed.
|
public boolean isAllowed()
ResultedEvent.Result
isAllowed
in interface ResultedEvent.Result
public Component getMessage()
public static KickedFromServerEvent.Notify create(Component message)
message
- the server to send the player to