Class ChatChannelSwitchEvent
java.lang.Object
me.remigio07.chatplugin.api.server.event.chat.channel.ChatChannelEvent
me.remigio07.chatplugin.api.server.event.chat.channel.ChatChannelSwitchEvent
- All Implemented Interfaces:
CancellableEvent
,ChatPluginEvent
,ChatPluginPlayerEvent
,ChatPluginServerPlayerEvent
Represents an event called before a player switches channels for writing.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChatChannelSwitchEvent
(ChatPluginServerPlayer player, ChatChannel<? extends ChatChannelData> channel) Constructs a new channel switch event. -
Method Summary
Methods inherited from class me.remigio07.chatplugin.api.server.event.chat.channel.ChatChannelEvent
getChannel, getPlayer, isCancelled, setCancelled
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.remigio07.chatplugin.api.common.event.ChatPluginEvent
call
-
Constructor Details
-
ChatChannelSwitchEvent
public ChatChannelSwitchEvent(ChatPluginServerPlayer player, ChatChannel<? extends ChatChannelData> channel) Constructs a new channel switch event.- Parameters:
player
- Player involvedchannel
- Channel involved
-