// Path: Journey of Legends/aginsun/journey/server/api/StatKeeper.java
// public class StatKeeper 
// {
// 	public static HashMap<String, Integer> StrengthMap = new HashMap<String, Integer>();
// 	public static HashMap<String, Integer> DexeterityMap = new HashMap<String, Integer>();
// 	public static HashMap<String, Integer> IntelligenceMap = new HashMap<String, Integer>();
// 	public static HashMap<String, Integer> LuckMap = new HashMap<String, Integer>();
// 	
// 	public static int getStrengthPoints(EntityPlayer player)
// 	{
// 		if(!StrengthMap.containsKey(player.username))
// 		{
// 			return 4;
// 		}
// 		else if(StrengthMap.get(player.username) == 0)
// 		{
// 			return 4;
// 		}
// 		else
// 		{
// 			return StrengthMap.get(player.username);
// 		}
// 	}
// 	public static int getDexerityPoints(EntityPlayer player)
// 	{
// 		if(!DexeterityMap.containsKey(player.username))
// 		{
// 			return 4;
// 		}
// 		else if (DexeterityMap.get(player.username) == 0)
// 		{
// 			return 4;
// 		}
// 		else
// 		{
// 			return DexeterityMap.get(player.username);
// 		}
// 	}
// 	public static int getIntelligencePoints(EntityPlayer player)
// 	{
// 		if(!IntelligenceMap.containsKey(player.username))
// 		{
// 			return 4;
// 		}
// 		else if(IntelligenceMap.get(player.username) == 0)
// 		{
// 			return 4;
// 		}
// 		else
// 		{
// 			return IntelligenceMap.get(player.username);
// 		}
// 	}
// 	public static int getLuckPoints(EntityPlayer player)
// 	{
// 		if(!LuckMap.containsKey(player.username))
// 		{
// 			return 4;
// 		}
// 		else if(LuckMap.get(player.username) == 0)
// 		{
// 			return 4;
// 		}
// 		else
// 		{
// 			return LuckMap.get(player.username);
// 		}
// 	}
// 	
// 	public static void setStrengthPoints(EntityPlayer player, int amount)
// 	{
// 		StrengthMap.put(player.username, amount);
// 	}
// 	public static void setDexerityPoints(EntityPlayer player, int amount)
// 	{
// 		DexeterityMap.put(player.username, amount);
// 	}
// 	public static void setIntelligencePoints(EntityPlayer player, int amount)
// 	{
// 		IntelligenceMap.put(player.username, amount);
// 	}
// 	public static void setLuckPoints(EntityPlayer player, int amount)
// 	{
// 		LuckMap.put(player.username, amount);
// 	}
// 	
// 	public static void addStrengthPoints(EntityPlayer player, int amount) 
// 	{
// 		int i = getStrengthPoints(player);
// 		i += amount;
// 		setStrengthPoints(player, i);
// 		PacketDispatcher.sendPacketToPlayer(PacketType.populatePacket(new PacketStatsClient(player.username, StatKeeper.getStrengthPoints(player), StatKeeper.getDexerityPoints(player), StatKeeper.getIntelligencePoints(player), StatKeeper.getLuckPoints(player))), (Player)player);
// 	}
// 	public static void addDexPoints(EntityPlayer player, int amount)
// 	{
// 		int j = getDexerityPoints(player);
// 		j += amount;
// 		setDexerityPoints(player, j);
// 		PacketDispatcher.sendPacketToPlayer(PacketType.populatePacket(new PacketStatsClient(player.username, StatKeeper.getStrengthPoints(player), StatKeeper.getDexerityPoints(player), StatKeeper.getIntelligencePoints(player), StatKeeper.getLuckPoints(player))), (Player)player);
// 	}
// 	public static void addIntPoints(EntityPlayer player, int amount)
// 	{
// 		int j = getIntelligencePoints(player);
// 		j += amount;
// 		setIntelligencePoints(player, j);
// 		PacketDispatcher.sendPacketToPlayer(PacketType.populatePacket(new PacketStatsClient(player.username, StatKeeper.getStrengthPoints(player), StatKeeper.getDexerityPoints(player), StatKeeper.getIntelligencePoints(player), StatKeeper.getLuckPoints(player))), (Player)player);
// 	}	
// 	public static void addLukPoints(EntityPlayer player, int amount)
// 	{
// 		int j = getLuckPoints(player);
// 		j += amount;
// 		setLuckPoints(player, j);
// 		PacketDispatcher.sendPacketToPlayer(PacketType.populatePacket(new PacketStatsClient(player.username, StatKeeper.getStrengthPoints(player), StatKeeper.getDexerityPoints(player), StatKeeper.getIntelligencePoints(player), StatKeeper.getLuckPoints(player))), (Player)player);
// 	}
// }


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.StatKeeper;
import cpw.mods.fml.common.network.Player;
		this.username = username;
		this.strength = strength;
		this.dexterity = dexterity;
		this.intelligence = intelligence;
		this.luck = luck;
	}
	
	@Override
	public void readData(DataInputStream data) throws IOException
	{
		this.username = data.readUTF();
		this.strength = data.readInt();
		this.dexterity = data.readInt();
		this.intelligence = data.readInt();
		this.luck = data.readInt();
	}
	
	public void writeData(DataOutputStream dos) throws IOException
	{
		dos.writeUTF(username);
		dos.writeInt(strength);
		dos.writeInt(dexterity);
		dos.writeInt(intelligence);
		dos.writeInt(luck);
	}
	
	public void execute(INetworkManager network, Player thePlayer)
	{
		EntityPlayer player = (EntityPlayer)thePlayer;
		
// Path: Journey of Legends/aginsun/journey/server/api/StatKeeper.java
// public class StatKeeper 
// {
// 	public static HashMap<String, Integer> StrengthMap = new HashMap<String, Integer>();
// 	public static HashMap<String, Integer> DexeterityMap = new HashMap<String, Integer>();
// 	public static HashMap<String, Integer> IntelligenceMap = new HashMap<String, Integer>();
// 	public static HashMap<String, Integer> LuckMap = new HashMap<String, Integer>();
// 	
// 	public static int getStrengthPoints(EntityPlayer player)
// 	{
// 		if(!StrengthMap.containsKey(player.username))
// 		{
// 			return 4;
// 		}
// 		else if(StrengthMap.get(player.username) == 0)
// 		{
// 			return 4;
// 		}
// 		else
// 		{
// 			return StrengthMap.get(player.username);
// 		}
// 	}
// 	public static int getDexerityPoints(EntityPlayer player)
// 	{
// 		if(!DexeterityMap.containsKey(player.username))
// 		{
// 			return 4;
// 		}
// 		else if (DexeterityMap.get(player.username) == 0)
// 		{
// 			return 4;
// 		}
// 		else
// 		{
// 			return DexeterityMap.get(player.username);
// 		}
// 	}
// 	public static int getIntelligencePoints(EntityPlayer player)
// 	{
// 		if(!IntelligenceMap.containsKey(player.username))
// 		{
// 			return 4;
// 		}
// 		else if(IntelligenceMap.get(player.username) == 0)
// 		{
// 			return 4;
// 		}
// 		else
// 		{
// 			return IntelligenceMap.get(player.username);
// 		}
// 	}
// 	public static int getLuckPoints(EntityPlayer player)
// 	{
// 		if(!LuckMap.containsKey(player.username))
// 		{
// 			return 4;
// 		}
// 		else if(LuckMap.get(player.username) == 0)
// 		{
// 			return 4;
// 		}
// 		else
// 		{
// 			return LuckMap.get(player.username);
// 		}
// 	}
// 	
// 	public static void setStrengthPoints(EntityPlayer player, int amount)
// 	{
// 		StrengthMap.put(player.username, amount);
// 	}
// 	public static void setDexerityPoints(EntityPlayer player, int amount)
// 	{
// 		DexeterityMap.put(player.username, amount);
// 	}
// 	public static void setIntelligencePoints(EntityPlayer player, int amount)
// 	{
// 		IntelligenceMap.put(player.username, amount);
// 	}
// 	public static void setLuckPoints(EntityPlayer player, int amount)
// 	{
// 		LuckMap.put(player.username, amount);
// 	}
// 	
// 	public static void addStrengthPoints(EntityPlayer player, int amount) 
// 	{
// 		int i = getStrengthPoints(player);
// 		i += amount;
// 		setStrengthPoints(player, i);
// 		PacketDispatcher.sendPacketToPlayer(PacketType.populatePacket(new PacketStatsClient(player.username, StatKeeper.getStrengthPoints(player), StatKeeper.getDexerityPoints(player), StatKeeper.getIntelligencePoints(player), StatKeeper.getLuckPoints(player))), (Player)player);
// 	}
// 	public static void addDexPoints(EntityPlayer player, int amount)
// 	{
// 		int j = getDexerityPoints(player);
// 		j += amount;
// 		setDexerityPoints(player, j);
// 		PacketDispatcher.sendPacketToPlayer(PacketType.populatePacket(new PacketStatsClient(player.username, StatKeeper.getStrengthPoints(player), StatKeeper.getDexerityPoints(player), StatKeeper.getIntelligencePoints(player), StatKeeper.getLuckPoints(player))), (Player)player);
// 	}
// 	public static void addIntPoints(EntityPlayer player, int amount)
// 	{
// 		int j = getIntelligencePoints(player);
// 		j += amount;
// 		setIntelligencePoints(player, j);
// 		PacketDispatcher.sendPacketToPlayer(PacketType.populatePacket(new PacketStatsClient(player.username, StatKeeper.getStrengthPoints(player), StatKeeper.getDexerityPoints(player), StatKeeper.getIntelligencePoints(player), StatKeeper.getLuckPoints(player))), (Player)player);
// 	}	
// 	public static void addLukPoints(EntityPlayer player, int amount)
// 	{
// 		int j = getLuckPoints(player);
// 		j += amount;
// 		setLuckPoints(player, j);
// 		PacketDispatcher.sendPacketToPlayer(PacketType.populatePacket(new PacketStatsClient(player.username, StatKeeper.getStrengthPoints(player), StatKeeper.getDexerityPoints(player), StatKeeper.getIntelligencePoints(player), StatKeeper.getLuckPoints(player))), (Player)player);
// 	}
// }


// Path: Journey of Legends/aginsun/journey/universal/packets/PacketStatsClient.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.StatKeeper;
import cpw.mods.fml.common.network.Player;

		this.username = username;
		this.strength = strength;
		this.dexterity = dexterity;
		this.intelligence = intelligence;
		this.luck = luck;
	}
	
	@Override
	public void readData(DataInputStream data) throws IOException
	{
		this.username = data.readUTF();
		this.strength = data.readInt();
		this.dexterity = data.readInt();
		this.intelligence = data.readInt();
		this.luck = data.readInt();
	}
	
	public void writeData(DataOutputStream dos) throws IOException
	{
		dos.writeUTF(username);
		dos.writeInt(strength);
		dos.writeInt(dexterity);
		dos.writeInt(intelligence);
		dos.writeInt(luck);
	}
	
	public void execute(INetworkManager network, Player thePlayer)
	{
		EntityPlayer player = (EntityPlayer)thePlayer;
		
		StatKeeper.setStrengthPoints(player, strength);