Cancellablepublic class PlayerKickEvent extends PlayerEvent implements Cancellable
Event.Resultplayer| Constructor | Description |
|---|---|
PlayerKickEvent(Player playerKicked,
java.lang.String kickReason,
java.lang.String leaveMessage) |
| Modifier and Type | Method | Description |
|---|---|---|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
java.lang.String |
getLeaveMessage() |
Gets the leave message send to all online players
|
java.lang.String |
getReason() |
Gets the reason why the player is getting kicked
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel) |
Sets the cancellation state of this event.
|
void |
setLeaveMessage(java.lang.String leaveMessage) |
Sets the leave message send to all online players
|
void |
setReason(java.lang.String kickReason) |
Sets the reason why the player is getting kicked
|
getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlayerpublic PlayerKickEvent(Player playerKicked, java.lang.String kickReason, java.lang.String leaveMessage)
public java.lang.String getReason()
public java.lang.String getLeaveMessage()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic void setReason(java.lang.String kickReason)
kickReason - kick reasonpublic void setLeaveMessage(java.lang.String leaveMessage)
leaveMessage - leave messagepublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.