public enum InternalLang extends Enum<InternalLang> implements Lang
Lang enum for CodelanxLib| Enum Constant and Description |
|---|
COMMAND_HELP_INFO
Help information for
HelpCommand |
COMMAND_HELP_ITEMFORMAT
Format for listing a command in
HelpCommand |
COMMAND_HELP_TITLEFORMAT
Title for the
HelpCommand's internal Paginator |
COMMAND_RELOAD_DONE
Output of a finished
ReloadCommand |
COMMAND_RELOAD_INFO
Info for
ReloadCommand |
COMMAND_RELOAD_UNSUPPORTED
Relayed if reloading is not supported
|
COMMAND_STATUS_FAILED
Relayed when a command execution fail (exceptions or the like)
|
COMMAND_STATUS_NOPERM
Relayed if a CommandSender does not have permissions to use the command
|
COMMAND_STATUS_RESTRICTED
Relayed when an inappropriate CommandSender is used for a command
|
COMMAND_STATUS_UNSUPPORTED
Relayed upon an unknown/unsupported command
|
COMMAND_STATUS_USAGE
Used to relay the usage of a command
|
ECONOMY_FAILED
Relayed if an economy transaction failed
|
ECONOMY_INSUFF
Relayed if funds for an economy transaction are insufficient
|
ECONOMY_REFUND
Relayed if a player is refunded money
|
FORMAT
Format for CodelanxLib
|
PAGINATOR_BARCHAR
Character to use for the
Paginator bars |
PAGINATOR_BARCOLOR
Bar color for the
Paginator class |
PAGINATOR_PAGEFORMAT
The format specified for displaying page count
|
PAGINATOR_TITLECOLOR
Color of the title for the
Paginator class |
PAGINATOR_TITLECONTAINER
Accept a bar color first, title color second, then the title itself third
|
| Modifier and Type | Method and Description |
|---|---|
Yaml |
getConfig()
Returns the relevant
FileDataType for this config. |
String |
getDefault()
The default value of this YAML string
|
Lang |
getFormat()
Returns the format specifier for this
Lang file. |
String |
getPath()
The YAML path to store this value in
|
static InternalLang |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InternalLang[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcolor, createLang, defaultFormat, format, getFormat, pluralFormat, sendMessage, sendMessage, sendRawMessagegetFileLocation, init, save, savepublic static final InternalLang COMMAND_STATUS_USAGE
public static final InternalLang COMMAND_STATUS_NOPERM
public static final InternalLang COMMAND_STATUS_FAILED
public static final InternalLang COMMAND_STATUS_UNSUPPORTED
public static final InternalLang COMMAND_STATUS_RESTRICTED
public static final InternalLang COMMAND_HELP_TITLEFORMAT
HelpCommand's internal Paginatorpublic static final InternalLang COMMAND_HELP_ITEMFORMAT
HelpCommandpublic static final InternalLang COMMAND_HELP_INFO
HelpCommandpublic static final InternalLang COMMAND_RELOAD_UNSUPPORTED
public static final InternalLang COMMAND_RELOAD_DONE
ReloadCommandpublic static final InternalLang COMMAND_RELOAD_INFO
ReloadCommandpublic static final InternalLang ECONOMY_INSUFF
public static final InternalLang ECONOMY_REFUND
public static final InternalLang ECONOMY_FAILED
public static final InternalLang PAGINATOR_BARCHAR
Paginator barspublic static final InternalLang PAGINATOR_BARCOLOR
Paginator classpublic static final InternalLang PAGINATOR_TITLECOLOR
Paginator classpublic static final InternalLang PAGINATOR_TITLECONTAINER
public static final InternalLang PAGINATOR_PAGEFORMAT
public static final InternalLang FORMAT
public static InternalLang[] values()
for (InternalLang c : InternalLang.values()) System.out.println(c);
public static InternalLang valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getPath()
PluginFilegetPath in interface PluginFilepublic String getDefault()
LanggetDefault in interface LanggetDefault in interface PluginFilepublic Lang getFormat()
LangLang file. This should be
a constant in the enum and represent a value that is used for all
messages universally.public Yaml getConfig()
PluginFileFileDataType for this config.getConfig in interface PluginFileFileDataType of this ConfigCopyright © 2015. All rights reserved.