minny.zephyrus.utils
Class PlayerConfigHandler

java.lang.Object
  extended by minny.zephyrus.utils.PlayerConfigHandler

public class PlayerConfigHandler
extends java.lang.Object

Zephyrus

Author:
minnymin3

Constructor Summary
PlayerConfigHandler()
           
 
Method Summary
static org.bukkit.configuration.file.FileConfiguration getConfig(Zephyrus plugin, org.bukkit.entity.Player player)
          Gets the config for the specified player
static void reloadConfig(Zephyrus plugin, org.bukkit.entity.Player player)
          Reloads the config from the file
static void saveConfig(Zephyrus plugin, org.bukkit.entity.Player player)
          Saves the config file for the specified player
static void saveDefaultConfig(Zephyrus plugin, org.bukkit.entity.Player player)
          Saves a new file for the player
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerConfigHandler

public PlayerConfigHandler()
Method Detail

reloadConfig

public static void reloadConfig(Zephyrus plugin,
                                org.bukkit.entity.Player player)
Reloads the config from the file

Parameters:
plugin - Zephyrus main class
player - The player to get the config for

getConfig

public static org.bukkit.configuration.file.FileConfiguration getConfig(Zephyrus plugin,
                                                                        org.bukkit.entity.Player player)
Gets the config for the specified player

Parameters:
plugin - Zephyrus main class
player - The player to get the config for
Returns:
The player's FileConfiguration

saveConfig

public static void saveConfig(Zephyrus plugin,
                              org.bukkit.entity.Player player)
Saves the config file for the specified player

Parameters:
plugin - Zephyrus main class
player - The player to save the config for

saveDefaultConfig

public static void saveDefaultConfig(Zephyrus plugin,
                                     org.bukkit.entity.Player player)
Saves a new file for the player

Parameters:
plugin - Zephyrus main class
player - The player to save the default config for