public void loadInventory(Player p)
	{
		ItemStack[] invMain = new ItemStack[0], invArmor = new ItemStack[0];
		try {
			invMain = (ItemStack[]) main.playerData.get(p.getUniqueId().toString() + ".inventoryMain");
			invArmor = (ItemStack[]) main.playerData.get(p.getUniqueId().toString() + ".inventoryArmor");
		} catch (Exception e) {
			e.printStackTrace();
		}
		if (!(invMain == null || invArmor == null)){
			try {
				p.getInventory().setContents(invMain);
				p.getInventory().setArmorContents(invArmor);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}