private File getConfigFile(String file) {

        if (file.isEmpty() || file == null) {
            return null;
        }

        File configFile;

        if (file.contains("/")) {

            if (file.startsWith("/")) {
                configFile = new File(plugin.getDataFolder()
                        + file.replace("/", File.separator));
            } else {
                configFile = new File(plugin.getDataFolder() + File.separator
                        + file.replace("/", File.separator));
            }

        } else {
            configFile = new File(plugin.getDataFolder(), file);
        }

        return configFile;

    }