public interface NucleusAFKEvent
extends org.spongepowered.api.event.entity.living.humanoid.player.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 |
---|---|
org.spongepowered.api.text.channel.MessageChannel |
getChannel()
Gets the channel to send the message to
|
java.util.Optional<org.spongepowered.api.text.Text> |
getMessage()
Gets the message to send to players
|
org.spongepowered.api.text.channel.MessageChannel |
getOriginalChannel()
Gets the original message channel to send the message to
|
java.util.Optional<org.spongepowered.api.text.Text> |
getOriginalMessage()
Gets the original message that would have been sent to players, if any.
|
void |
setChannel(org.spongepowered.api.text.channel.MessageChannel channel)
Sets the message channel to send the message to
|
void |
setMessage(org.spongepowered.api.text.Text message)
Sets the message to send to players, if any.
|
java.util.Optional<org.spongepowered.api.text.Text> getOriginalMessage()
java.util.Optional<org.spongepowered.api.text.Text> getMessage()
void setMessage(@Nullable org.spongepowered.api.text.Text message)
message
- The message. A null message suppresses the message.org.spongepowered.api.text.channel.MessageChannel getOriginalChannel()
MessageChannel
org.spongepowered.api.text.channel.MessageChannel getChannel()
MessageChannel
void setChannel(org.spongepowered.api.text.channel.MessageChannel channel)
channel
- The MessageChannel