public static class RegionManagerCommandsManager.MessageProperties
extends java.lang.Object
RegionManagerCommandsManager.MessageProperties contains all message-related stuff for RegionManager
| Modifier and Type | Field and Description |
|---|---|
static org.bukkit.ChatColor |
CHATCOLOR_BROADCAST
public static final ChatColor CHATCOLOR_BROADCAST = ChatColor.DARK_AQUA;
The color used when sending broadcasts. |
static org.bukkit.ChatColor |
CHATCOLOR_CMD
public static final ChatColor CHATCOLOR_CMD = ChatColor.GOLD
The color used to highlight a command. |
static org.bukkit.ChatColor |
CHATCOLOR_CMDDESC
public static final ChatColor CHATCOLOR_CMDDESC = ChatColor.WHITE;
The color used to highlight a command's description. |
static org.bukkit.ChatColor |
CHATCOLOR_CMDPARAM
public static final ChatColor CHATCOLOR_CMDPARAM = ChatColor.GRAY;
The color used to highlight a command's parameter. |
static org.bukkit.ChatColor |
CHATCOLOR_ERROR
public static final ChatColor CHATCOLOR_ERROR = ChatColor.RED;
The color used when sending error messages. |
static org.bukkit.ChatColor |
CHATCOLOR_PARAM
public static final ChatColor CHATCOLOR_PARAM = ChatColor.WHITE;
The color used to highlight a parameter. |
static org.bukkit.ChatColor |
CHATCOLOR_PLAYERMSG
public static final ChatColor CHATCOLOR_PLAYERMSG = ChatColor.YELLOW;
The color used when sending messages to a player. |
static java.lang.String |
MESSAGE_PREFIX
public static final String MESSAGE_PREFIX = ChatColor.GRAY + "[" + ChatColor.DARK_AQUA + "RegionManager" + ChatColor.GRAY + "] ";
The message prefix shown when sending a message. |
| Constructor and Description |
|---|
RegionManagerCommandsManager.MessageProperties() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getCantAfford(java.lang.String regionname,
double price)
Returns a "You can't afford"-message.
|
static java.lang.String |
getCommandHelp(java.lang.String command,
java.lang.String params,
java.lang.String desc)
Returns a command's help message.
|
static java.lang.String |
getFooter()
Returns the footer used by RegionManager when sending longer messages.
|
static java.lang.String |
getHeader(java.lang.String title)
Returns a header with a specified title.
|
static java.lang.String |
getNoEconomy()
Returns an error message that an economy plugin was not found.
|
static java.lang.String |
getNoPermission(java.lang.String permission)
Returns an error message for insufficient permissions.
|
static java.lang.String |
getRegionInfo(org.bukkit.configuration.file.YamlConfiguration config,
org.bukkit.configuration.file.YamlConfiguration regions,
java.lang.String regionname)
Returns a description of a region.
|
static java.lang.String |
getRegionList(java.lang.String player,
java.util.Map<java.lang.String,java.lang.String> regions)
Returns a region list for a certain player.
|
public static final java.lang.String MESSAGE_PREFIX
public static final String MESSAGE_PREFIX = ChatColor.GRAY + "[" + ChatColor.DARK_AQUA + "RegionManager" + ChatColor.GRAY + "] ";
public static final org.bukkit.ChatColor CHATCOLOR_BROADCAST
public static final ChatColor CHATCOLOR_BROADCAST = ChatColor.DARK_AQUA;
public static final org.bukkit.ChatColor CHATCOLOR_PLAYERMSG
public static final ChatColor CHATCOLOR_PLAYERMSG = ChatColor.YELLOW;
public static final org.bukkit.ChatColor CHATCOLOR_PARAM
public static final ChatColor CHATCOLOR_PARAM = ChatColor.WHITE;
public static final org.bukkit.ChatColor CHATCOLOR_CMD
public static final ChatColor CHATCOLOR_CMD = ChatColor.GOLD
public static final org.bukkit.ChatColor CHATCOLOR_CMDPARAM
public static final ChatColor CHATCOLOR_CMDPARAM = ChatColor.GRAY;
public static final org.bukkit.ChatColor CHATCOLOR_CMDDESC
public static final ChatColor CHATCOLOR_CMDDESC = ChatColor.WHITE;
public static final org.bukkit.ChatColor CHATCOLOR_ERROR
public static final ChatColor CHATCOLOR_ERROR = ChatColor.RED;
public RegionManagerCommandsManager.MessageProperties()
public static final java.lang.String getCantAfford(java.lang.String regionname,
double price)
regionname - the region's name that can't be affordedprice - the price of that regionpublic static final java.lang.String getCommandHelp(java.lang.String command,
java.lang.String params,
java.lang.String desc)
command - the commandparams - the command's parametersdesc - the command's descriptionpublic static final java.lang.String getFooter()
CHATCOLOR_CMD + " ===== ### ===== "CHATCOLOR_CMDpublic static final java.lang.String getHeader(java.lang.String title)
null, a RegionManager header will be returned.title - the titlepublic static final java.lang.String getNoEconomy()
public static final java.lang.String getNoPermission(java.lang.String permission)
permission - the missing permissionpublic static final java.lang.String getRegionInfo(org.bukkit.configuration.file.YamlConfiguration config,
org.bukkit.configuration.file.YamlConfiguration regions,
java.lang.String regionname)
config - the RegionManager configurationregions - the RegionManager regions fileregionname - the region's namepublic static final java.lang.String getRegionList(java.lang.String player,
java.util.Map<java.lang.String,java.lang.String> regions)
null is used instead of a player's name this method will replace the player's name with "your".player - the player's name or nullregions - the player's regions where the value is the status (owner/member) of that player.