Skip to main content

Channels

Create voice channels

Creating a channel

CheatBreakerAPI.getInstance().createVoiceChannels(VoiceChannel channel...)

Adding a player to a channel

note
  • Players will only hear people who are in the same channel as they are.
channel.addPlayer(Player player)

Set a player's active channel to mark them as listening

note
  • Players are not automatically marked as listening to the first channel they are added to.
  • A player must be in a channel and marked as listening to receive voice data.
  • Players can switch freely between the channels they are added to.
CheatBreakerAPI.getInstance().setActiveChannel(Player player, VoiceChannel channel)

Removing a player from a channel

channel.removePlayer(Player player)

Check if a voice channel contains a player

channel.hasPlayer(Player player)

Check if a channel is the player's active channel

channel.isListening(Player player)