Interface ChannelSwitchEvent

All Superinterfaces:
CarbonEvent

Called when a player switches channels.
Since:
3.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    The channel the player is switching to.
    void
    channel(ChatChannel chatChannel)
    Sets the player's new channel.
    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

      void channel(ChatChannel chatChannel)
      Sets the player's new channel.
      Parameters:
      chatChannel - the new channel
      Since:
      3.0.0