public interface KickPlayerEvent extends TargetPlayerEvent, MessageChannelEvent
Player
is kicked.MessageChannelEvent.Chat
MessageEvent.DefaultBodyApplier, MessageEvent.DefaultHeaderApplier, MessageEvent.MessageFormatter
PARAM_MESSAGE_BODY, PARAM_MESSAGE_FOOTER, PARAM_MESSAGE_HEADER
Modifier and Type | Method and Description |
---|---|
Optional<MessageChannel> |
getChannel()
Deprecated.
Not used in this event.
|
MessageChannel |
getOriginalChannel()
Deprecated.
Not used in this event.
|
void |
setChannel(MessageChannel channel)
Deprecated.
Not used in this event.
|
void |
setMessageCancelled(boolean cancelled)
Deprecated.
|
getTargetEntity
getCause, getContext, getSource
clearMessage, getFormatter, getMessage, getOriginalMessage, isMessageCancelled, setMessage, setMessage, setMessage
@Deprecated MessageChannel getOriginalChannel()
getOriginalChannel
in interface MessageChannelEvent
MessageChannel
@Deprecated Optional<MessageChannel> getChannel()
getChannel
in interface MessageChannelEvent
MessageChannel
@Deprecated void setChannel(@Nullable MessageChannel channel)
setChannel
in interface MessageChannelEvent
channel
- A MessageChannel
that is not used in this event.@Deprecated void setMessageCancelled(boolean cancelled)
setMessageCancelled
in interface MessageEvent
cancelled
- True if should not be sent