public class UltraChatAPI
extends java.lang.Object
Constructor and Description |
---|
UltraChatAPI(UltraChat plugin) |
Modifier and Type | Method and Description |
---|---|
void |
createChannel(java.lang.String channel,
java.lang.String prefix,
java.lang.String permission,
boolean always_appear,
java.lang.String format,
java.util.ArrayList<java.lang.String> json)
Create a channel.
|
java.util.Set<java.lang.String> |
getActiveHooks()
Get the current active hooks.
|
java.util.ArrayList<java.lang.String> |
getChannelJson(java.lang.String channel)
Get a channel's json.
|
int |
getChatCount()
Get the number of formats
|
java.util.ArrayList<java.lang.String> |
getChatFormatJson(java.lang.String number)
Get a format's json.
|
java.lang.String |
getDefaultChannel()
Get the servers default channel.
|
java.lang.String |
getDefaultFormat()
Get the default format.
|
java.lang.String |
getFormat(java.lang.String number)
Get a chat format.
|
java.lang.String |
getFormattingType()
Get the current formatting type.
|
static UltraChat |
getInstance()
Deprecated.
|
ChatMode |
getMode()
Get the current chat mode.
|
java.lang.String |
getOpFormat()
Get the op format.
|
java.lang.String |
getPermission(java.lang.String number)
Get the permission of a chat group.
|
java.lang.String |
getPlayerChannel(org.bukkit.entity.Player player)
Grab the player's current channel.
|
java.lang.String |
getPlayerColor(org.bukkit.entity.Player player)
Get a player's color.
|
PlayerFormatting |
getPlayerFormatting(org.bukkit.entity.Player p)
Grab the player's formatting.
|
static UltraChat |
getPlugin()
Grab the plugin.
|
java.util.ArrayList<java.lang.String> |
getSwearWords()
Get the swear word list.
|
boolean |
isChannelEnabled()
Deprecated.
Use getMode()
|
boolean |
isChannelJson()
Get if the channel has json enabled or not.
|
boolean |
isJsonEnabled()
Deprecated.
Use getMode()
|
boolean |
isRangeJson()
Get if range has json or not.
|
boolean |
legitDefaultChannel(java.lang.String chan)
See if default channel exists.
|
void |
removeChannel(java.lang.String channel)
Remove a channel.
|
void |
setChannelJson(java.util.ArrayList<java.lang.String> json,
java.lang.String channel)
Set a channel's json.
|
void |
setChatFormatJson(java.util.ArrayList<java.lang.String> json,
java.lang.String number)
Set a format's json.
|
void |
setDefaultChannel(java.lang.String channel)
Set the default channel
|
void |
setMode(ChatMode cm)
Set the chat mode.
|
void |
setPlayerChannel(org.bukkit.entity.Player player,
java.lang.String channel)
Set the player's channel.
|
void |
setPlayerColor(org.bukkit.entity.Player player,
java.lang.String color)
Set a player's color.
|
void |
setSwearWords(java.util.ArrayList<java.lang.String> words)
Set the swear word list.
|
public UltraChatAPI(UltraChat plugin)
public static UltraChat getInstance()
public java.lang.String getPlayerChannel(org.bukkit.entity.Player player)
player
- public java.lang.String getDefaultChannel()
public void setPlayerChannel(org.bukkit.entity.Player player, java.lang.String channel)
player
- channel
- public void setDefaultChannel(java.lang.String channel)
channel
- public java.util.ArrayList<java.lang.String> getChannelJson(java.lang.String channel)
channel
- public java.util.ArrayList<java.lang.String> getChatFormatJson(java.lang.String number)
number
- public void setChannelJson(java.util.ArrayList<java.lang.String> json, java.lang.String channel)
json
- channel
- public void setChatFormatJson(java.util.ArrayList<java.lang.String> json, java.lang.String number)
json
- number
- public boolean isChannelEnabled()
public boolean isJsonEnabled()
public ChatMode getMode()
public void setMode(ChatMode cm)
cm
- The chat managerpublic PlayerFormatting getPlayerFormatting(org.bukkit.entity.Player p)
p
- The player.public java.lang.String getFormat(java.lang.String number)
number
- public java.lang.String getOpFormat()
public java.lang.String getDefaultFormat()
public java.lang.String getPermission(java.lang.String number)
number
- public int getChatCount()
public java.lang.String getPlayerColor(org.bukkit.entity.Player player)
player
- public void setPlayerColor(org.bukkit.entity.Player player, java.lang.String color)
player
- color
- public java.util.ArrayList<java.lang.String> getSwearWords()
public void setSwearWords(java.util.ArrayList<java.lang.String> words)
words
- public void createChannel(java.lang.String channel, java.lang.String prefix, java.lang.String permission, boolean always_appear, java.lang.String format, java.util.ArrayList<java.lang.String> json)
channel
- prefix
- permission
- always_appear
- format
- json
- public void removeChannel(java.lang.String channel)
channel
- public static UltraChat getPlugin()
public java.lang.String getFormattingType()
public boolean isChannelJson()
public boolean legitDefaultChannel(java.lang.String chan)
chan
- - The channel in the config.public boolean isRangeJson()
public java.util.Set<java.lang.String> getActiveHooks()