public class ChannelManager
extends java.lang.Object
Get the instance of this class from UltraChatAPI.getChannelManager()
Constructor and Description |
---|
ChannelManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
channelExists(ChatChannel channel)
If a given channel exists (In this instance if it is save in the files)
|
boolean |
channelExists(java.lang.String name)
If a given channel exists based upon the name.
|
java.util.List<java.util.UUID> |
getAllPlayersInChannel(ChatChannel channel)
Get all players in a channel online or offline.
|
ChatChannel |
getChannelByName(java.lang.String name)
Get a channel via its name
|
ChatChannel |
getDefaultChannel()
Get the servers default channel.
|
ChatChannel |
getPlayerChannel(org.bukkit.entity.Player player)
Grab the player's current channel.
|
ChatChannel |
getPlayerChannel(java.util.UUID player)
Grab an offline player's current channel.
|
java.util.List<org.bukkit.entity.Player> |
getPlayersInChannel(ChatChannel channel)
Get all online players in a given channel.
|
void |
setDefaultChannel(ChatChannel channel)
Set the default channel
|
void |
setPlayerChannel(org.bukkit.entity.Player player,
ChatChannel channel)
Set the player's channel.
|
void |
setPlayerChannel(java.util.UUID player,
ChatChannel channel)
Set the player's channel.
|
public ChatChannel getChannelByName(java.lang.String name)
name
- The name of the channelpublic ChatChannel getPlayerChannel(org.bukkit.entity.Player player)
player
- The player to get the channel from.public ChatChannel getPlayerChannel(java.util.UUID player)
player
- The player to get the channel from.public ChatChannel getDefaultChannel()
public void setPlayerChannel(org.bukkit.entity.Player player, ChatChannel channel)
player
- The player to set.channel
- The channel.public void setPlayerChannel(java.util.UUID player, ChatChannel channel)
player
- The player to set.channel
- The channel.public void setDefaultChannel(ChatChannel channel)
channel
- The channel.public boolean channelExists(ChatChannel channel)
channel
- The channel to check.public boolean channelExists(java.lang.String name)
name
- The name of the channel to checkpublic java.util.List<org.bukkit.entity.Player> getPlayersInChannel(ChatChannel channel)
channel
- The channel to get the players from.public java.util.List<java.util.UUID> getAllPlayersInChannel(ChatChannel channel)
channel
- The channel to get the UUIDs from.