package com.cadyyan.levels.utils;

import com.cadyyan.levels.Levels;
import net.minecraft.server.MinecraftServer;
import net.minecraftforge.fml.common.FMLCommonHandler;

import java.io.File;

public class SerializationHelper
{
	private static File playerDataDirectory;

	public static void init()
	{
		MinecraftServer server = FMLCommonHandler.instance().getMinecraftServerInstance();

		File worldDirectory = server.getEntityWorld().getSaveHandler().getWorldDirectory();
		playerDataDirectory = new File(worldDirectory, "playerData" + File.separator + Levels.MOD_ID.toLowerCase());

		if (!playerDataDirectory.mkdirs())
			LogUtility.error("Unable to create the player level directory.");
	}

	public static File getPlayerDataDirectory()
	{
		return playerDataDirectory;
	}

	private SerializationHelper()
	{
	}
}

@@ -521,17 +521,17 @@
  %22player
-D
+d
 ata%22 + F

Fix spelling error in playerdata dir