private static eCoreInventory loadInventory(OfflinePlayer player, YamlConfiguration yamlConfig, boolean eventInv){
		String configPath = eventInv?"eCoreInv.":"normalInv.", tempPath;
		eCoreInventory inv; int amount; List<ItemStack> tempItems = new ArrayList<ItemStack>();
		Map<String, ItemStack[]> serialized = new HashMap<String, ItemStack[]>();
		if(!yamlConfig.isSet(configPath)){
			if(player.isOnline())
				inv = eventInv?eCoreInventory.createNewInventory(player):new eCoreInventory(player.getPlayer());
			else 
				inv = eCoreInventory.createNewInventory(player);
			saveInventory(yamlConfig, inv, eventInv);
		} else {
			for(String temp: new String[]{"contents", "armorContents"}){
				tempPath = configPath+temp+".";
				amount = yamlConfig.getInt(tempPath+"amount");
				tempItems.clear();
				for(int i = 0; i<amount; i++){
					tempItems.add(yamlConfig.getItemStack(tempPath+"slot"+i, new ItemStack(Material.AIR)));
				}
				serialized.put(temp, tempItems.toArray(new ItemStack[tempItems.size()]));
			}
			serialized.put(yamlConfig.getString("Name"), null);
			inv = eCoreInventory.deserialize(player, serialized);
		}
		return inv;
	}