Interface ChannelSwitchEvent
- All Superinterfaces:
CarbonEvent
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
public interface ChannelSwitchEvent
extends CarbonEvent
Called when a player switches channels.
- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionchannel()The channel the player is switching to.voidchannel(ChatChannel chatChannel) Sets the player's new channel.player()The player switching channels.
-
Method Details
-
player
CarbonPlayer player()The player switching channels.- Since:
- 3.0.0
-
channel
ChatChannel channel()The channel the player is switching to.- Since:
- 3.0.0
-
channel
Sets the player's new channel.- Parameters:
chatChannel- the new channel- Since:
- 3.0.0
-