Package cn.nukkit.event.player
Class PlayerKickEvent
java.lang.Object
cn.nukkit.event.Event
cn.nukkit.event.player.PlayerEvent
cn.nukkit.event.player.PlayerKickEvent
- All Implemented Interfaces:
Cancellable
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected TextContainer
protected final PlayerKickEvent.Reason
protected final String
Fields inherited from class cn.nukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionPlayerKickEvent
(Player player, PlayerKickEvent.Reason reason, TextContainer quitMessage) PlayerKickEvent
(Player player, PlayerKickEvent.Reason reason, String quitMessage) PlayerKickEvent
(Player player, PlayerKickEvent.Reason reason, String reasonString, TextContainer quitMessage) PlayerKickEvent
(Player player, String reason, TextContainer quitMessage) Deprecated.PlayerKickEvent
(Player player, String reason, String quitMessage) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
void
setQuitMessage
(TextContainer quitMessage) void
setQuitMessage
(String joinMessage) Methods inherited from class cn.nukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class cn.nukkit.event.Event
getEventName, isCancelled, setCancelled, setCancelled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.nukkit.event.Cancellable
isCancelled, setCancelled, setCancelled
-
Field Details
-
quitMessage
-
reason
-
reasonString
-
-
Constructor Details
-
PlayerKickEvent
Deprecated. -
PlayerKickEvent
Deprecated. -
PlayerKickEvent
-
PlayerKickEvent
-
PlayerKickEvent
public PlayerKickEvent(Player player, PlayerKickEvent.Reason reason, String reasonString, TextContainer quitMessage)
-
-
Method Details
-
getHandlers
-
getReason
-
getReasonEnum
-
getQuitMessage
-
setQuitMessage
-
setQuitMessage
-