|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Lang>
me.armar.plugins.autorank.language.Lang
public enum Lang
Every enumeration value has its path and default value.
To get the path, do getPath().
To get the default value, do getDefault().
For the defined value in the lang.yml config, use getConfigValue(String[]).
A string array is expected for the input. This can be null
| Field Summary | |
|---|---|
private java.lang.String |
def
|
private static org.bukkit.configuration.file.FileConfiguration |
LANG
|
private java.lang.String |
path
|
| Method Summary | |
|---|---|
java.lang.String |
getConfigValue(java.lang.String[] args)
Get the value in the config with certain arguments |
java.lang.String |
getDefault()
Get the default value of the path. |
java.lang.String |
getPath()
Get the path to the string. |
static void |
setFile(org.bukkit.configuration.file.FileConfiguration config)
Set the FileConfiguration to use. |
static Lang |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Lang[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Lang PLAYER_NOT_ONLINE
public static final Lang AUTORANK_RELOADED
public static final Lang INVALID_FORMAT
public static final Lang PLAYTIME_CHANGED
public static final Lang CANNOT_CHECK_CONSOLE
public static final Lang NO_PERMISSION
public static final Lang HAS_PLAYED_FOR
public static final Lang IS_IN
public static final Lang NO_GROUPS
public static final Lang ONE_GROUP
public static final Lang MULTIPLE_GROUPS
public static final Lang NO_NEXT_RANK
public static final Lang MEETS_ALL_REQUIREMENTS
public static final Lang MEETS_ALL_REQUIREMENTS_WITHOUT_RANK_UP
public static final Lang RANKED_UP_NOW
public static final Lang REQUIREMENTS_TO_RANK
public static final Lang DATA_IMPORTED
public static final Lang TIME_REQUIREMENT
public static final Lang WORLD_REQUIREMENT
public static final Lang VOTE_REQUIREMENT
public static final Lang MONEY_REQUIREMENT
public static final Lang BROKEN_BLOCKS_REQUIREMENT
public static final Lang PLACED_BLOCKS_REQUIREMENT
public static final Lang EXP_REQUIREMENT
public static final Lang GAMEMODE_REQUIREMENT
public static final Lang ITEM_REQUIREMENT
public static final Lang MINUTE_SINGULAR
public static final Lang MINUTE_PLURAL
public static final Lang HOUR_SINGULAR
public static final Lang HOUR_PLURAL
public static final Lang DAY_SINGULAR
public static final Lang DAY_PLURAL
public static final Lang INVALID_NUMBER
public static final Lang PLAYER_IS_EXCLUDED
public static final Lang MYSQL_IS_NOT_ENABLED
public static final Lang ALREADY_COMPLETED_REQUIREMENT
public static final Lang SUCCESSFULLY_COMPLETED_REQUIREMENT
public static final Lang DO_NOT_MEET_REQUIREMENTS_FOR
public static final Lang DONE_MARKER
public static final Lang OPTIONAL_MARKER
public static final Lang DAMAGE_TAKEN_REQUIREMENT
public static final Lang TOTAL_MOBS_KILLED_REQUIREMENT
public static final Lang LOCATION_REQUIREMENT
public static final Lang FACTIONS_POWER_REQUIREMENT
public static final Lang PLAYER_KILLS_REQUIREMENT
| Field Detail |
|---|
private java.lang.String path
private java.lang.String def
private static org.bukkit.configuration.file.FileConfiguration LANG
| Method Detail |
|---|
public static Lang[] values()
for (Lang c : Lang.values()) System.out.println(c);
public static Lang valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static void setFile(org.bukkit.configuration.file.FileConfiguration config)
FileConfiguration to use.
config - The config to set.public java.lang.String getConfigValue(java.lang.String[] args)
args - arguments that need to be given. (Can be null)
public java.lang.String getDefault()
public java.lang.String getPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||