minny.zephyrus.player
Class LevelManager

java.lang.Object
  extended by minny.zephyrus.player.LevelManager
Direct Known Subclasses:
Spell

public class LevelManager
extends java.lang.Object

Zephyrus

Author:
minnymin3

Field Summary
static Zephyrus plugin
           
 
Constructor Summary
LevelManager(Zephyrus plugin)
           
 
Method Summary
 void displayLevel(org.bukkit.entity.Player player)
          Sends the level and levelprogress to the player (in an awesome display way)
 void displayMana(org.bukkit.entity.Player player)
          Sends the mana level to the player (in an awesome display way)
static void drainMana(org.bukkit.entity.Player player, int amount)
          Drains mana from a player
 int getLevel(org.bukkit.entity.HumanEntity player)
          Gets the level of the player
static int getLevel(org.bukkit.entity.Player player)
          Gets the level of the player
static int getLevelProgress(org.bukkit.entity.Player player)
          Get the level progress of the player
static int getMana(org.bukkit.entity.Player player)
           
 void levelProgress(org.bukkit.entity.Player player, int amount)
          Add levelprogress to player
 void levelUp(org.bukkit.entity.Player player)
          Levelup the player
static int loadMana(org.bukkit.entity.Player player)
          Loads the mana from the config
static void resetMana(org.bukkit.entity.Player player)
          Reloads the mana from the player's level
static void saveMana(org.bukkit.entity.Player player)
          Saves the mana level of a player to that player's config
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plugin

public static Zephyrus plugin
Constructor Detail

LevelManager

public LevelManager(Zephyrus plugin)
Method Detail

levelUp

public void levelUp(org.bukkit.entity.Player player)
Levelup the player

Parameters:
player - The player to levelup

levelProgress

public void levelProgress(org.bukkit.entity.Player player,
                          int amount)
Add levelprogress to player

Parameters:
player - The player to add progress to
amount - The amount to add

getLevelProgress

public static int getLevelProgress(org.bukkit.entity.Player player)
Get the level progress of the player

Parameters:
player - The player
Returns:
The player's level progress

getLevel

public static int getLevel(org.bukkit.entity.Player player)
Gets the level of the player

Parameters:
player - The player
Returns:
The level of the player

getLevel

public int getLevel(org.bukkit.entity.HumanEntity player)
Gets the level of the player

Parameters:
player - The player
Returns:
The level of the player

resetMana

public static void resetMana(org.bukkit.entity.Player player)
Reloads the mana from the player's level

Parameters:
player - The player

getMana

public static int getMana(org.bukkit.entity.Player player)
Parameters:
player -
Returns:

saveMana

public static void saveMana(org.bukkit.entity.Player player)
Saves the mana level of a player to that player's config

Parameters:
player - The player

loadMana

public static int loadMana(org.bukkit.entity.Player player)
Loads the mana from the config

Parameters:
player - The player
Returns:
The player's mana level (from the config)

drainMana

public static void drainMana(org.bukkit.entity.Player player,
                             int amount)
Drains mana from a player

Parameters:
player - The player
amount - The amount to drain

displayMana

public void displayMana(org.bukkit.entity.Player player)
Sends the mana level to the player (in an awesome display way)

Parameters:
player - The player

displayLevel

public void displayLevel(org.bukkit.entity.Player player)
Sends the level and levelprogress to the player (in an awesome display way)

Parameters:
player - The player