public interface NucleusAFKEvent extends TargetPlayerEvent
Modifier and Type | Interface and Description |
---|---|
static interface |
NucleusAFKEvent.GoingAFK
Fired when a player goes AFK.
|
static interface |
NucleusAFKEvent.Kick
Fired when a player is about to be kicked due to inactivity.
|
static interface |
NucleusAFKEvent.NotifyCommand
Fired when the target of a command is AFK and the command is marked
as one that should notify the sender.
|
static interface |
NucleusAFKEvent.ReturningFromAFK
Fired when a player returns from AFK.
|
Modifier and Type | Method and Description |
---|---|
MessageChannel |
getChannel()
Gets the channel to send the message to
|
Optional<Text> |
getMessage()
Gets the message to send to players
|
MessageChannel |
getOriginalChannel()
Gets the original message channel to send the message to
|
Optional<Text> |
getOriginalMessage()
Gets the original message that would have been sent to players, if any.
|
void |
setChannel(MessageChannel channel)
Sets the message channel to send the message to
|
void |
setMessage(Text message)
Sets the message to send to players, if any.
|
getTargetEntity
getCause, getContext, getSource
Optional<Text> getOriginalMessage()
Optional<Text> getMessage()
void setMessage(@Nullable Text message)
message
- The message. A null message suppresses the message.MessageChannel getOriginalChannel()
MessageChannel
MessageChannel getChannel()
MessageChannel
void setChannel(MessageChannel channel)
channel
- The MessageChannel