public class PlayerKickEvent extends PlayerEvent implements Cancellable
Event.Resultplayer| コンストラクタと説明 |
|---|
PlayerKickEvent(Player playerKicked,
String kickReason,
String leaveMessage) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
String |
getLeaveMessage()
Gets the leave message send to all online players
|
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(String leaveMessage)
Sets the leave message send to all online players
|
void |
setReason(String kickReason)
Sets the reason why the player is getting kicked
|
getPlayergetEventName, isAsynchronouspublic String getReason()
public String getLeaveMessage()
public boolean isCancelled()
CancellableisCancelled インタフェース内 Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled インタフェース内 Cancellablecancel - true if you wish to cancel this eventpublic void setReason(String kickReason)
kickReason - kick reasonpublic void setLeaveMessage(String leaveMessage)
leaveMessage - leave messagepublic HandlerList getHandlers()
getHandlers クラス内 Eventpublic static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.