// Path: Journey of Legends/aginsun/journey/server/api/ExperienceKeeper.java
// public class ExperienceKeeper
// {
// 	private static HashMap<String, Integer> ExperienceMap = new HashMap<String, Integer>();
// 	
// 	public static void addExperience(EntityPlayer player)
// 	{
// 		int Experience = getExperience(player);
// 		Experience++;
// 		setExperience(player, Experience);
// 	}
// 	
// 	public static void addExperience(EntityPlayer player, int experience)
// 	{
// 		int Experience = getExperience(player);
// 		Experience += experience;
// 		setExperience(player, Experience);
// 	}
// 	
// 	public static void setExperience(EntityPlayer player, int experience)
// 	{
// 		ExperienceMap.put(player.username, experience);
// 	}
// 	
// 	public static int getExperience(EntityPlayer player)
// 	{
// 		if(!ExperienceMap.containsKey(player.username))
// 		{
// 			return 0;
// 		}
// 		return ExperienceMap.get(player.username);
// 	}
// 	
// 	public static int getExperience(String username)
// 	{
// 		if(!ExperienceMap.containsKey(username))
// 		{
// 			return 0;
// 		}
// 		return ExperienceMap.get(username);
// 	}
// }


import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.network.INetworkManager;
import aginsun.journey.server.api.ExperienceKeeper;
import cpw.mods.fml.common.network.Player;
package aginsun.journey.universal.packets;



public class PacketExperience extends PacketJoL
{
	private int Experience;
	private String username;
	public PacketExperience() 
	{
		super(PacketType.EXPERIENCE, false);
	}
	
	public PacketExperience(String username, int Experience)
	{
		super(PacketType.EXPERIENCE, false);
		this.username = username;
		this.Experience = Experience;
	}
	
	public void readData(DataInputStream data) throws IOException
	{
		this.username = data.readUTF();
		this.Experience = data.readInt();
	}
	
	public void writeData(DataOutputStream dos) throws IOException
	{
		dos.writeUTF(username);
		dos.writeInt(Experience);
	}
	
	public void execute(INetworkManager network, Player player)
	{
		EntityPlayer thePlayer = (EntityPlayer)player;
		
// Path: Journey of Legends/aginsun/journey/server/api/ExperienceKeeper.java
// public class ExperienceKeeper
// {
// 	private static HashMap<String, Integer> ExperienceMap = new HashMap<String, Integer>();
// 	
// 	public static void addExperience(EntityPlayer player)
// 	{
// 		int Experience = getExperience(player);
// 		Experience++;
// 		setExperience(player, Experience);
// 	}
// 	
// 	public static void addExperience(EntityPlayer player, int experience)
// 	{
// 		int Experience = getExperience(player);
// 		Experience += experience;
// 		setExperience(player, Experience);
// 	}
// 	
// 	public static void setExperience(EntityPlayer player, int experience)
// 	{
// 		ExperienceMap.put(player.username, experience);
// 	}
// 	
// 	public static int getExperience(EntityPlayer player)
// 	{
// 		if(!ExperienceMap.containsKey(player.username))
// 		{
// 			return 0;
// 		}
// 		return ExperienceMap.get(player.username);
// 	}
// 	
// 	public static int getExperience(String username)
// 	{
// 		if(!ExperienceMap.containsKey(username))
// 		{
// 			return 0;
// 		}
// 		return ExperienceMap.get(username);
// 	}
// }


// Path: Journey of Legends/aginsun/journey/universal/packets/PacketExperience.java
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.network.INetworkManager;
import aginsun.journey.server.api.ExperienceKeeper;
import cpw.mods.fml.common.network.Player;

package aginsun.journey.universal.packets;



public class PacketExperience extends PacketJoL
{
	private int Experience;
	private String username;
	public PacketExperience() 
	{
		super(PacketType.EXPERIENCE, false);
	}
	
	public PacketExperience(String username, int Experience)
	{
		super(PacketType.EXPERIENCE, false);
		this.username = username;
		this.Experience = Experience;
	}
	
	public void readData(DataInputStream data) throws IOException
	{
		this.username = data.readUTF();
		this.Experience = data.readInt();
	}
	
	public void writeData(DataOutputStream dos) throws IOException
	{
		dos.writeUTF(username);
		dos.writeInt(Experience);
	}
	
	public void execute(INetworkManager network, Player player)
	{
		EntityPlayer thePlayer = (EntityPlayer)player;
		
		ExperienceKeeper.setExperience(thePlayer, Experience);