public class ServerKickEvent extends Event implements Cancellable
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerKickEvent.State |
| Constructor and Description |
|---|
ServerKickEvent(ProxiedPlayer player,
BaseComponent[] kickReasonComponent,
ServerInfo cancelServer)
Deprecated.
|
ServerKickEvent(ProxiedPlayer player,
BaseComponent[] kickReasonComponent,
ServerInfo cancelServer,
ServerKickEvent.State state)
Deprecated.
|
ServerKickEvent(ProxiedPlayer player,
ServerInfo kickedFrom,
BaseComponent[] kickReasonComponent,
ServerInfo cancelServer,
ServerKickEvent.State state)
Deprecated.
|
ServerKickEvent(ProxiedPlayer player,
ServerInfo kickedFrom,
BaseComponent reason,
ServerInfo cancelServer,
ServerKickEvent.State state) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ServerInfo |
getCancelServer()
Server to send player to if this event is cancelled.
|
ServerInfo |
getKickedFrom()
The server the player was kicked from, should be used in preference to
ProxiedPlayer.getServer(). |
String |
getKickReason()
Deprecated.
use component methods instead
|
BaseComponent[] |
getKickReasonComponent()
Deprecated.
use single component methods instead
|
ProxiedPlayer |
getPlayer()
Player being kicked.
|
BaseComponent |
getReason()
Kick reason.
|
ServerKickEvent.State |
getState()
State in which the kick occured.
|
int |
hashCode() |
boolean |
isCancelled()
Cancelled status.
|
void |
setCancelled(boolean cancelled)
Cancelled status.
|
void |
setCancelServer(ServerInfo cancelServer)
Server to send player to if this event is cancelled.
|
void |
setKickReason(String reason)
Deprecated.
use component methods instead
|
void |
setKickReasonComponent(BaseComponent[] kickReasonComponent)
Deprecated.
use single component methods instead
|
void |
setReason(BaseComponent reason)
Kick reason.
|
void |
setState(ServerKickEvent.State state)
State in which the kick occured.
|
String |
toString() |
@Deprecated public ServerKickEvent(ProxiedPlayer player, BaseComponent[] kickReasonComponent, ServerInfo cancelServer)
@Deprecated public ServerKickEvent(ProxiedPlayer player, BaseComponent[] kickReasonComponent, ServerInfo cancelServer, ServerKickEvent.State state)
@Deprecated public ServerKickEvent(ProxiedPlayer player, ServerInfo kickedFrom, BaseComponent[] kickReasonComponent, ServerInfo cancelServer, ServerKickEvent.State state)
public ServerKickEvent(ProxiedPlayer player, ServerInfo kickedFrom, BaseComponent reason, ServerInfo cancelServer, ServerKickEvent.State state)
@Deprecated public String getKickReason()
@Deprecated public void setKickReason(String reason)
reason - the kick reason@Deprecated public BaseComponent[] getKickReasonComponent()
@Deprecated public void setKickReasonComponent(BaseComponent[] kickReasonComponent)
kickReasonComponent - the kick reasonpublic boolean isCancelled()
isCancelled in interface Cancellablepublic ProxiedPlayer getPlayer()
public ServerInfo getKickedFrom()
ProxiedPlayer.getServer().public BaseComponent getReason()
public ServerInfo getCancelServer()
public ServerKickEvent.State getState()
public void setCancelled(boolean cancelled)
setCancelled in interface Cancellablecancelled - the state to setpublic void setReason(BaseComponent reason)
public void setCancelServer(ServerInfo cancelServer)
public void setState(ServerKickEvent.State state)
protected boolean canEqual(Object other)
Copyright © 2012–2024 SpigotMC. All rights reserved.