// Path: Journey of Legends/aginsun/journey/universal/packets/PacketStatsClient.java
// public class PacketStatsClient extends PacketJoL
// {
// 	private String username;
// 	private int strength;
// 	private int dexterity;
// 	private int intelligence;
// 	private int luck;
// 	
// 	public PacketStatsClient() 
// 	{
// 		super(PacketType.STATS, false);
// 	}
// 	
// 	public PacketStatsClient(String username, int strength, int dexterity, int intelligence, int luck)
// 	{
// 		super(PacketType.STATS, false);
// 		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);
// 		StatKeeper.setDexerityPoints(player, dexterity);
// 		StatKeeper.setIntelligencePoints(player, intelligence);
// 		StatKeeper.setLuckPoints(player, luck);
// 	}
// }
// 
// Path: Journey of Legends/aginsun/journey/universal/packets/PacketType.java
// public enum PacketType 
// {
// 	GOLD(PacketGold.class),
// 	EXPERIENCE(PacketExperience.class),
// 	STATS(PacketStatsClient.class),
// 	STATCHANGE(PacketStatChange.class),
// 	RACE(PacketRace.class), 
// 	QUESTDATA(PacketQuestData.class),
// 	QUESTDATACLIENT(PacketQuestDataClient.class),
// 	LEVEL(PacketLevel.class),
// 	SOUND(PacketSound.class);
// 	
// 	private Class<? extends PacketJoL> clazz;
// 	
// 	PacketType(Class<? extends PacketJoL> clazz)
// 	{
// 		this.clazz = clazz;
// 	}
// 	
//     public static PacketJoL buildPacket(byte[] data) {
// 
//         ByteArrayInputStream bis = new ByteArrayInputStream(data);
//         int selector = bis.read();
//         DataInputStream dis = new DataInputStream(bis);
// 
//         PacketJoL packet = null;
// 
//         try {
//             packet = values()[selector].clazz.newInstance();
//         }
//         catch (Exception e) {
//             e.printStackTrace(System.err);
//         }
// 
//         packet.readPopulate(dis);
// 
//         return packet;
//     }
// 
//     public static PacketJoL buildPacket(PacketType type) {
// 
//         PacketJoL packet = null;
// 
//         try {
//             packet = values()[type.ordinal()].clazz.newInstance();
//         }
//         catch (Exception e) {
//             e.printStackTrace(System.err);
//         }
// 
//         return packet;
//     }
// 
//     public static Packet populatePacket(PacketJoL packetToK) {
// 
//         byte[] data = packetToK.populate();
// 
//         Packet250CustomPayload packet250 = new Packet250CustomPayload();
//         packet250.channel = Utils.modID;
//         packet250.data = data;
//         packet250.length = data.length;
//         packet250.isChunkDataPacket = packetToK.isChunkDataPacket;
// 
//         return packet250;
//     }
// }


import java.util.HashMap;
import net.minecraft.entity.player.EntityPlayer;
import aginsun.journey.universal.packets.PacketStatsClient;
import aginsun.journey.universal.packets.PacketType;
import cpw.mods.fml.common.network.PacketDispatcher;
import cpw.mods.fml.common.network.Player;
			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);
// Path: Journey of Legends/aginsun/journey/universal/packets/PacketStatsClient.java
// public class PacketStatsClient extends PacketJoL
// {
// 	private String username;
// 	private int strength;
// 	private int dexterity;
// 	private int intelligence;
// 	private int luck;
// 	
// 	public PacketStatsClient() 
// 	{
// 		super(PacketType.STATS, false);
// 	}
// 	
// 	public PacketStatsClient(String username, int strength, int dexterity, int intelligence, int luck)
// 	{
// 		super(PacketType.STATS, false);
// 		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);
// 		StatKeeper.setDexerityPoints(player, dexterity);
// 		StatKeeper.setIntelligencePoints(player, intelligence);
// 		StatKeeper.setLuckPoints(player, luck);
// 	}
// }
// 
// Path: Journey of Legends/aginsun/journey/universal/packets/PacketType.java
// public enum PacketType 
// {
// 	GOLD(PacketGold.class),
// 	EXPERIENCE(PacketExperience.class),
// 	STATS(PacketStatsClient.class),
// 	STATCHANGE(PacketStatChange.class),
// 	RACE(PacketRace.class), 
// 	QUESTDATA(PacketQuestData.class),
// 	QUESTDATACLIENT(PacketQuestDataClient.class),
// 	LEVEL(PacketLevel.class),
// 	SOUND(PacketSound.class);
// 	
// 	private Class<? extends PacketJoL> clazz;
// 	
// 	PacketType(Class<? extends PacketJoL> clazz)
// 	{
// 		this.clazz = clazz;
// 	}
// 	
//     public static PacketJoL buildPacket(byte[] data) {
// 
//         ByteArrayInputStream bis = new ByteArrayInputStream(data);
//         int selector = bis.read();
//         DataInputStream dis = new DataInputStream(bis);
// 
//         PacketJoL packet = null;
// 
//         try {
//             packet = values()[selector].clazz.newInstance();
//         }
//         catch (Exception e) {
//             e.printStackTrace(System.err);
//         }
// 
//         packet.readPopulate(dis);
// 
//         return packet;
//     }
// 
//     public static PacketJoL buildPacket(PacketType type) {
// 
//         PacketJoL packet = null;
// 
//         try {
//             packet = values()[type.ordinal()].clazz.newInstance();
//         }
//         catch (Exception e) {
//             e.printStackTrace(System.err);
//         }
// 
//         return packet;
//     }
// 
//     public static Packet populatePacket(PacketJoL packetToK) {
// 
//         byte[] data = packetToK.populate();
// 
//         Packet250CustomPayload packet250 = new Packet250CustomPayload();
//         packet250.channel = Utils.modID;
//         packet250.data = data;
//         packet250.length = data.length;
//         packet250.isChunkDataPacket = packetToK.isChunkDataPacket;
// 
//         return packet250;
//     }
// }


// Path: Journey of Legends/aginsun/journey/server/api/StatKeeper.java
import java.util.HashMap;
import net.minecraft.entity.player.EntityPlayer;
import aginsun.journey.universal.packets.PacketStatsClient;
import aginsun.journey.universal.packets.PacketType;
import cpw.mods.fml.common.network.PacketDispatcher;
import cpw.mods.fml.common.network.Player;

			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);