public class UltraChatAPI
extends java.lang.Object
Constructor and Description |
---|
UltraChatAPI() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getActiveHooks()
Get the current active hooks.
|
AddonManager |
getAddonManager()
Get the addon manager.
|
ChannelManager |
getChannelManager() |
ChatColorManager |
getChatColorManager()
Get the chat color manager.
|
ChatColorUtils |
getChatColorUtil()
Get the chat color utility interface.
|
ChatType |
getChatType()
Get the current chat type.
|
ChatType |
getFormattingType()
Get the current formatting type.
|
java.lang.String |
getPlayerColor(org.bukkit.entity.Player player)
Get a player's color.
|
ChatChannel |
getPlayerCurrentChannel(java.util.UUID player)
Deprecated.
Use the channel manager instead.
|
PlayerFormatting |
getPlayerFormatting(org.bukkit.entity.Player p)
Deprecated.
Construct the
PlayerFormatting class yourself. |
java.util.List<java.lang.String> |
getSwearWords()
Get the swear word list.
|
void |
setPlayerColor(org.bukkit.entity.Player player,
java.lang.String color)
Set a player's color.
|
void |
setSwearWords(java.util.List<java.lang.String> words)
Set the swear word list.
|
void |
setType(ChatType cm)
Set the chat mode.
|
public ChatChannel getPlayerCurrentChannel(java.util.UUID player)
player
- The uuid of the player you want to get.public AddonManager getAddonManager()
public ChatType getChatType()
public void setType(ChatType cm)
cm
- The chat managerpublic PlayerFormatting getPlayerFormatting(org.bukkit.entity.Player p)
PlayerFormatting
class yourself.p
- The player.public java.lang.String getPlayerColor(org.bukkit.entity.Player player)
This will return a string Such as &4 or {#FFFFFF}.
Note: The colors interpreted are from the chatcolor.yml file. To also get color data from the use ChatUtil.translateColorCode(String)
player
- The player to get the color forpublic void setPlayerColor(org.bukkit.entity.Player player, java.lang.String color)
player
- The player color to setcolor
- The color to set
Keep in mind that this color is interpreted from the chatcolor.yml file, not the default colors.
public java.util.List<java.lang.String> getSwearWords()
public void setSwearWords(java.util.List<java.lang.String> words)
words
- The words to addpublic ChatType getFormattingType()
public ChatColorUtils getChatColorUtil()
Note: Most methods from this interface are wrapped in the ChatUtil
class.
public ChatColorManager getChatColorManager()
Note: Most uses for this class is covered by the ChatUtil
class.
This class is only available on 1.16+ servers. This WILL return null on any version below 1.16.
public ChannelManager getChannelManager()
public java.util.Set<java.lang.String> getActiveHooks()