public class PlayerKickEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerKickEvent(Player player,
java.lang.String sendername,
java.lang.String reason) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getReason()
Gets the reason why the player will be kicked.
|
java.lang.String |
getSenderName()
Gets the name of the player who wants to kick this player.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
void |
setReason(java.lang.String reason)
Sets the reason why this player will be kicked.
|
getPlayerpublic PlayerKickEvent(Player player, java.lang.String sendername, java.lang.String reason)
public java.lang.String getSenderName()
public void setReason(java.lang.String reason)
reason - the reason why the player will be kicked.public java.lang.String getReason()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - set to true if you want to cancel this event.