public static final class KickedFromServerEvent.Notify extends Object implements KickedFromServerEvent.ServerKickResult
KickedFromServerEvent.DisconnectPlayer result.| Modifier and Type | Method and Description |
|---|---|
static KickedFromServerEvent.Notify |
create(net.kyori.text.Component message)
Deprecated.
Use
create(net.kyori.adventure.text.Component) instead |
static KickedFromServerEvent.Notify |
create(net.kyori.adventure.text.Component message)
Notifies the player with the specified message but does nothing else.
|
net.kyori.text.Component |
getMessage()
Deprecated.
|
net.kyori.adventure.text.Component |
getMessageComponent() |
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 getMessage()
public net.kyori.adventure.text.Component getMessageComponent()
@Deprecated public static KickedFromServerEvent.Notify create(net.kyori.text.Component message)
create(net.kyori.adventure.text.Component) insteadmessage - the server to send the player topublic static KickedFromServerEvent.Notify create(net.kyori.adventure.text.Component message)
message - the server to send the player to