fr.xephi.authme.settings
Class Messages

java.lang.Object
  extended by org.bukkit.configuration.MemorySection
      extended by org.bukkit.configuration.MemoryConfiguration
          extended by org.bukkit.configuration.file.FileConfiguration
              extended by org.bukkit.configuration.file.YamlConfiguration
                  extended by fr.xephi.authme.settings.CustomConfiguration
                      extended by fr.xephi.authme.settings.Messages
All Implemented Interfaces:
org.bukkit.configuration.Configuration, org.bukkit.configuration.ConfigurationSection

public class Messages
extends CustomConfiguration


Field Summary
 
Fields inherited from class org.bukkit.configuration.file.FileConfiguration
SYSTEM_UTF, UTF_BIG, UTF8_OVERRIDE
 
Constructor Summary
Messages(java.io.File file)
           
 
Method Summary
 void _(org.bukkit.command.CommandSender sender, java.lang.String msg)
           
 java.lang.String[] _(java.lang.String msg)
           
static Messages getInstance()
           
 void loadDefaults(java.io.File file)
          Loads a file from the plugin jar and sets as default
 boolean saved(java.io.File file)
          Saves the configuration to disk
 boolean saveDefaults(java.io.File file)
          Saves current configuration (plus defaults) to disk.
 
Methods inherited from class fr.xephi.authme.settings.CustomConfiguration
load, loadRessource, reLoad, save
 
Methods inherited from class org.bukkit.configuration.file.YamlConfiguration
loadConfiguration, loadConfiguration, loadConfiguration, loadFromString, options, saveToString
 
Methods inherited from class org.bukkit.configuration.file.FileConfiguration
load, load, load, load, save, save
 
Methods inherited from class org.bukkit.configuration.MemoryConfiguration
addDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaults
 
Methods inherited from class org.bukkit.configuration.MemorySection
contains, createPath, createPath, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getOfflinePlayer, getOfflinePlayer, getRoot, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLong, isOfflinePlayer, isSet, isString, isVector, set, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.bukkit.configuration.ConfigurationSection
contains, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getOfflinePlayer, getOfflinePlayer, getRoot, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLong, isOfflinePlayer, isSet, isString, isVector, set
 

Constructor Detail

Messages

public Messages(java.io.File file)
Method Detail

loadDefaults

public final void loadDefaults(java.io.File file)
Loads a file from the plugin jar and sets as default

Parameters:
filename - The filename to open

saved

public final boolean saved(java.io.File file)
Saves the configuration to disk

Returns:
True if saved successfully

saveDefaults

public final boolean saveDefaults(java.io.File file)
Saves current configuration (plus defaults) to disk. If defaults and configuration are empty, saves blank file.

Returns:
True if saved successfully

_

public void _(org.bukkit.command.CommandSender sender,
              java.lang.String msg)

_

public java.lang.String[] _(java.lang.String msg)

getInstance

public static Messages getInstance()