public static final File getSmartpingVariable(String variableName, boolean playerRelated)
{
	try
	{
		Plugin smartping = Bukkit.getPluginManager().getPlugin("SmartPing");
		if (smartping == null)
			throw new UnsupportedOperationException();

		File variablesDir = new File(smartping.getDataFolder(), "variables/" + (playerRelated ? "players" : "global"));

		if (!variablesDir.exists())
			if (!variablesDir.mkdirs())
				throw new IOException();

		File variable = new File(variablesDir, variableName.toUpperCase().replace('/', '_').replace('\\', '_'));

		if (!variable.exists())
			variable.createNewFile();

		return variable;
	} catch (Exception e)
	{
		// e.printStackTrace();
		return null;
	}
}