public void initialize(boolean isForce) {
    if (resources != null) {
      return;
    }
    File file = new File(plugin.getDataFolder() + File.separator + FILE_NAME);

    if (!file.exists() || isForce) {
      Util.copyFileFromJar(plugin.getPluginJarFile(), file, FILE_NAME, false);
    }
    resources = YamlConfiguration.loadConfiguration(file);
  }
 public World getWorld(String par1Key) {
   initialize();
   if (!isnull(par1Key)) {
     return plugin.getServer().getWorld(getString(par1Key));
   } else {
     return null;
   }
 }
 public void save() {
   initialize();
   try {
     resources.save(plugin.getDataFolder() + File.separator + FILE_NAME);
   } catch (IOException e) {
     e.printStackTrace();
   }
   plugin.log.info("Saved Configuration.");
 }
 public Location getLocation(String par1Key) {
   initialize();
   if (!isnull(par1Key)) {
     return new Location(
         getWorld(par1Key + ".world"),
         getDouble(par1Key + ".x"),
         getDouble(par1Key + ".y"),
         getDouble(par1Key + ".z"));
   } else {
     return new Location(plugin.getServer().getWorld("world"), 0.0, 0.0, 0.0);
   }
 }