me.armar.plugins.autorank.language
Enum Lang

java.lang.Object
  extended by java.lang.Enum<Lang>
      extended by me.armar.plugins.autorank.language.Lang
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Lang>

public enum Lang
extends java.lang.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

Author:
Staartvin and gomeow

Enum Constant Summary
ALREADY_COMPLETED_REQUIREMENT
           
AUTORANK_RELOADED
           
BROKEN_BLOCKS_REQUIREMENT
           
CANNOT_CHECK_CONSOLE
           
DAMAGE_TAKEN_REQUIREMENT
           
DATA_IMPORTED
           
DAY_PLURAL
           
DAY_SINGULAR
           
DO_NOT_MEET_REQUIREMENTS_FOR
           
DONE_MARKER
           
EXP_REQUIREMENT
           
FACTIONS_POWER_REQUIREMENT
           
GAMEMODE_REQUIREMENT
           
HAS_PLAYED_FOR
           
HOUR_PLURAL
           
HOUR_SINGULAR
           
INVALID_FORMAT
           
INVALID_NUMBER
           
IS_IN
           
ITEM_REQUIREMENT
           
LOCATION_REQUIREMENT
           
MEETS_ALL_REQUIREMENTS
           
MEETS_ALL_REQUIREMENTS_WITHOUT_RANK_UP
           
MINUTE_PLURAL
           
MINUTE_SINGULAR
           
MONEY_REQUIREMENT
           
MULTIPLE_GROUPS
           
MYSQL_IS_NOT_ENABLED
           
NO_GROUPS
           
NO_NEXT_RANK
           
NO_PERMISSION
           
ONE_GROUP
           
OPTIONAL_MARKER
           
PLACED_BLOCKS_REQUIREMENT
           
PLAYER_IS_EXCLUDED
           
PLAYER_KILLS_REQUIREMENT
           
PLAYER_NOT_ONLINE
           
PLAYTIME_CHANGED
           
RANKED_UP_NOW
           
REQUIREMENTS_TO_RANK
           
SUCCESSFULLY_COMPLETED_REQUIREMENT
           
TIME_REQUIREMENT
           
TOTAL_MOBS_KILLED_REQUIREMENT
           
VOTE_REQUIREMENT
           
WORLD_REQUIREMENT
           
 
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

PLAYER_NOT_ONLINE

public static final Lang PLAYER_NOT_ONLINE

AUTORANK_RELOADED

public static final Lang AUTORANK_RELOADED

INVALID_FORMAT

public static final Lang INVALID_FORMAT

PLAYTIME_CHANGED

public static final Lang PLAYTIME_CHANGED

CANNOT_CHECK_CONSOLE

public static final Lang CANNOT_CHECK_CONSOLE

NO_PERMISSION

public static final Lang NO_PERMISSION

HAS_PLAYED_FOR

public static final Lang HAS_PLAYED_FOR

IS_IN

public static final Lang IS_IN

NO_GROUPS

public static final Lang NO_GROUPS

ONE_GROUP

public static final Lang ONE_GROUP

MULTIPLE_GROUPS

public static final Lang MULTIPLE_GROUPS

NO_NEXT_RANK

public static final Lang NO_NEXT_RANK

MEETS_ALL_REQUIREMENTS

public static final Lang MEETS_ALL_REQUIREMENTS

MEETS_ALL_REQUIREMENTS_WITHOUT_RANK_UP

public static final Lang MEETS_ALL_REQUIREMENTS_WITHOUT_RANK_UP

RANKED_UP_NOW

public static final Lang RANKED_UP_NOW

REQUIREMENTS_TO_RANK

public static final Lang REQUIREMENTS_TO_RANK

DATA_IMPORTED

public static final Lang DATA_IMPORTED

TIME_REQUIREMENT

public static final Lang TIME_REQUIREMENT

WORLD_REQUIREMENT

public static final Lang WORLD_REQUIREMENT

VOTE_REQUIREMENT

public static final Lang VOTE_REQUIREMENT

MONEY_REQUIREMENT

public static final Lang MONEY_REQUIREMENT

BROKEN_BLOCKS_REQUIREMENT

public static final Lang BROKEN_BLOCKS_REQUIREMENT

PLACED_BLOCKS_REQUIREMENT

public static final Lang PLACED_BLOCKS_REQUIREMENT

EXP_REQUIREMENT

public static final Lang EXP_REQUIREMENT

GAMEMODE_REQUIREMENT

public static final Lang GAMEMODE_REQUIREMENT

ITEM_REQUIREMENT

public static final Lang ITEM_REQUIREMENT

MINUTE_SINGULAR

public static final Lang MINUTE_SINGULAR

MINUTE_PLURAL

public static final Lang MINUTE_PLURAL

HOUR_SINGULAR

public static final Lang HOUR_SINGULAR

HOUR_PLURAL

public static final Lang HOUR_PLURAL

DAY_SINGULAR

public static final Lang DAY_SINGULAR

DAY_PLURAL

public static final Lang DAY_PLURAL

INVALID_NUMBER

public static final Lang INVALID_NUMBER

PLAYER_IS_EXCLUDED

public static final Lang PLAYER_IS_EXCLUDED

MYSQL_IS_NOT_ENABLED

public static final Lang MYSQL_IS_NOT_ENABLED

ALREADY_COMPLETED_REQUIREMENT

public static final Lang ALREADY_COMPLETED_REQUIREMENT

SUCCESSFULLY_COMPLETED_REQUIREMENT

public static final Lang SUCCESSFULLY_COMPLETED_REQUIREMENT

DO_NOT_MEET_REQUIREMENTS_FOR

public static final Lang DO_NOT_MEET_REQUIREMENTS_FOR

DONE_MARKER

public static final Lang DONE_MARKER

OPTIONAL_MARKER

public static final Lang OPTIONAL_MARKER

DAMAGE_TAKEN_REQUIREMENT

public static final Lang DAMAGE_TAKEN_REQUIREMENT

TOTAL_MOBS_KILLED_REQUIREMENT

public static final Lang TOTAL_MOBS_KILLED_REQUIREMENT

LOCATION_REQUIREMENT

public static final Lang LOCATION_REQUIREMENT

FACTIONS_POWER_REQUIREMENT

public static final Lang FACTIONS_POWER_REQUIREMENT

PLAYER_KILLS_REQUIREMENT

public static final Lang PLAYER_KILLS_REQUIREMENT
Field Detail

path

private java.lang.String path

def

private java.lang.String def

LANG

private static org.bukkit.configuration.file.FileConfiguration LANG
Method Detail

values

public static Lang[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Lang c : Lang.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Lang valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

setFile

public static void setFile(org.bukkit.configuration.file.FileConfiguration config)
Set the FileConfiguration to use.

Parameters:
config - The config to set.

getConfigValue

public java.lang.String getConfigValue(java.lang.String[] args)
Get the value in the config with certain arguments

Parameters:
args - arguments that need to be given. (Can be null)
Returns:
value in config or otherwise default value

getDefault

public java.lang.String getDefault()
Get the default value of the path.

Returns:
The default value of the path.

getPath

public java.lang.String getPath()
Get the path to the string.

Returns:
The path to the string.