// 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 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.RaceKeeper;
import cpw.mods.fml.common.network.Player;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
	public PacketRace(String username, String race)
	{
		super(PacketType.RACE, false);
		this.username = username;
		this.race = race;
	}
	
	public void readData(DataInputStream data) throws IOException
	{
		this.username = data.readUTF();
		this.race = data.readUTF();
	}
	
	public void writeData(DataOutputStream dos) throws IOException
	{
		dos.writeUTF(username);
		dos.writeUTF(race);
	}
	
	public void execute(INetworkManager network, Player player)
	{
		EntityPlayer thePlayer = (EntityPlayer)player;
		
		setValues(thePlayer);
		
	}
	
	@SideOnly(Side.CLIENT)
	public void setValues(EntityPlayer player)
	{
// 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/packets/PacketRace.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.RaceKeeper;
import cpw.mods.fml.common.network.Player;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

	public PacketRace(String username, String race)
	{
		super(PacketType.RACE, false);
		this.username = username;
		this.race = race;
	}
	
	public void readData(DataInputStream data) throws IOException
	{
		this.username = data.readUTF();
		this.race = data.readUTF();
	}
	
	public void writeData(DataOutputStream dos) throws IOException
	{
		dos.writeUTF(username);
		dos.writeUTF(race);
	}
	
	public void execute(INetworkManager network, Player player)
	{
		EntityPlayer thePlayer = (EntityPlayer)player;
		
		setValues(thePlayer);
		
	}
	
	@SideOnly(Side.CLIENT)
	public void setValues(EntityPlayer player)
	{
		RaceKeeper.setClass(player, race);