// Path: Journey of Legends/aginsun/journey/server/api/LevelKeeper.java
// public class LevelKeeper 
// {
// 	private static HashMap<String, Integer> LevelMap = new HashMap<String, Integer>();
// 	private static HashMap<String, Integer> StatPointsMap = new HashMap<String, Integer>();
// 	
// 	public static void setLevel(EntityPlayer player, int amount)
// 	{
// 		LevelMap.put(player.username, amount);
// 	}
// 	
// 	public static int getLevel(EntityPlayer player)
// 	{
// 		if(LevelMap.containsKey(player.username))
// 			return LevelMap.get(player.username);
// 		else
// 			return 1;
// 	}
// 	
// 	public static void addLevel(EntityPlayer player)
// 	{
// 		int x = getLevel(player);
// 		x++;
// 		setLevel(player, x);
// 	}
// 	
// 	public static void setSP(EntityPlayer player, int amount)
// 	{
// 		StatPointsMap.put(player.username, amount);
// 	}
// 	
// 	public static int getSP(EntityPlayer player)
// 	{
// 		if(StatPointsMap.containsKey(player.username))
// 			return StatPointsMap.get(player.username);
// 		else
// 			return 0;
// 	}
// 	
// 	public static void addSP(EntityPlayer player, int amount)
// 	{
// 		int x = getSP(player);
// 		x += amount;
// 		setSP(player, x);
// 	}
// 	
// 	public static void decreaseSP(EntityPlayer player, int amount)
// 	{
// 		int x = getSP(player);
// 		x -= amount;
// 		setSP(player, x);
// 	}
// }
// 
// Path: Journey of Legends/aginsun/journey/server/api/RaceKeeper.java
// public class RaceKeeper 
// {
// 	public static HashMap<String, String> Race = new HashMap<String, String>();
// 	
// 	public static String getClass(EntityPlayer player)
// 	{
// 		if(Race.containsKey(player.username))
// 			return Race.get(player.username);
// 		else
// 			return "Beginner";
// 	}
// 	
// 	public static void setClass(EntityPlayer player, String race)
// 	{
// 		Race.put(player.username, race);
// 	}
// }


import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
import net.minecraftforge.common.EnumHelper;
import aginsun.journey.server.api.LevelKeeper;
import aginsun.journey.server.api.RaceKeeper;
package aginsun.journey.universal.items;


public class ItemJourneySword extends ItemSword
{
	private static String name;
	private static int harvestLevel = 0;
	private static int maxUses;
	private static int efficiency = 0;
	private static int damage;
	private static int enchantability = 22;
	private String[] classes;
	private int level;
	
	public ItemJourneySword(int par1, String name, int maxUses, int damage, String[] classes, int level) 
	{
		super(par1, EnumHelper.addToolMaterial(name, harvestLevel, maxUses, efficiency, damage, enchantability));
		this.damage = damage;
		this.classes = classes;
		this.level = level;
	}
	
    public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity)
    {
    	for(String string : classes)
    		if(string.equals(RaceKeeper.getClass(player)))
// Path: Journey of Legends/aginsun/journey/server/api/LevelKeeper.java
// public class LevelKeeper 
// {
// 	private static HashMap<String, Integer> LevelMap = new HashMap<String, Integer>();
// 	private static HashMap<String, Integer> StatPointsMap = new HashMap<String, Integer>();
// 	
// 	public static void setLevel(EntityPlayer player, int amount)
// 	{
// 		LevelMap.put(player.username, amount);
// 	}
// 	
// 	public static int getLevel(EntityPlayer player)
// 	{
// 		if(LevelMap.containsKey(player.username))
// 			return LevelMap.get(player.username);
// 		else
// 			return 1;
// 	}
// 	
// 	public static void addLevel(EntityPlayer player)
// 	{
// 		int x = getLevel(player);
// 		x++;
// 		setLevel(player, x);
// 	}
// 	
// 	public static void setSP(EntityPlayer player, int amount)
// 	{
// 		StatPointsMap.put(player.username, amount);
// 	}
// 	
// 	public static int getSP(EntityPlayer player)
// 	{
// 		if(StatPointsMap.containsKey(player.username))
// 			return StatPointsMap.get(player.username);
// 		else
// 			return 0;
// 	}
// 	
// 	public static void addSP(EntityPlayer player, int amount)
// 	{
// 		int x = getSP(player);
// 		x += amount;
// 		setSP(player, x);
// 	}
// 	
// 	public static void decreaseSP(EntityPlayer player, int amount)
// 	{
// 		int x = getSP(player);
// 		x -= amount;
// 		setSP(player, x);
// 	}
// }
// 
// Path: Journey of Legends/aginsun/journey/server/api/RaceKeeper.java
// public class RaceKeeper 
// {
// 	public static HashMap<String, String> Race = new HashMap<String, String>();
// 	
// 	public static String getClass(EntityPlayer player)
// 	{
// 		if(Race.containsKey(player.username))
// 			return Race.get(player.username);
// 		else
// 			return "Beginner";
// 	}
// 	
// 	public static void setClass(EntityPlayer player, String race)
// 	{
// 		Race.put(player.username, race);
// 	}
// }


// Path: Journey of Legends/aginsun/journey/universal/items/ItemJourneySword.java
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
import net.minecraftforge.common.EnumHelper;
import aginsun.journey.server.api.LevelKeeper;
import aginsun.journey.server.api.RaceKeeper;

package aginsun.journey.universal.items;


public class ItemJourneySword extends ItemSword
{
	private static String name;
	private static int harvestLevel = 0;
	private static int maxUses;
	private static int efficiency = 0;
	private static int damage;
	private static int enchantability = 22;
	private String[] classes;
	private int level;
	
	public ItemJourneySword(int par1, String name, int maxUses, int damage, String[] classes, int level) 
	{
		super(par1, EnumHelper.addToolMaterial(name, harvestLevel, maxUses, efficiency, damage, enchantability));
		this.damage = damage;
		this.classes = classes;
		this.level = level;
	}
	
    public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity)
    {
    	for(String string : classes)
    		if(string.equals(RaceKeeper.getClass(player)))
    			if(level <= LevelKeeper.getLevel(player))