title: Java Bukkit/Spigot per player configuration files
body: <p>I've been working on a Bukkit/Spigot plugin which uses separate configuration files, but with research done and many tests of other peoples' answers, I have not found a solution that wants to work for me. I have tried <a href="https://stackoverflow.com/questions/31508751/minecraft-one-player-per-config">Minecraft One Player Per Config</a> and adapted it to my needs but it didn't work. Here's what I have:</p>
  
  <pre><code>private final String name;
  private FileConfiguration config = null;
  private final Plugin plugin;
  
  public Files(Plugin plugin, String name) {
      this.name = name;
      this.plugin = plugin;
      config = YamlConfiguration.loadConfiguration(new File(name));
  }
  
  public void create() {
      cfile = new File(plugin.getDataFolder() + File.separator + path, name + ".yml");
      if (!plugin.getDataFolder().exists()) plugin.getDataFolder().mkdir();
      if (!cfile.exists()) {
          try {
              cfile.createNewFile();
          } catch (IOException ex) {
              ex.printStackTrace();
          }
      }
      config = YamlConfiguration.loadConfiguration(cfile);
  }
  
  ... set, get, etc methods
  </code></pre>
  
  <p>If I try to instantiate with</p>
  
  <pre><code> Files f = new Files(plugin, "config");
  </code></pre>
  
  <p>I end up with errors when trying to get/set/etc or I end up with no errors nor any results. Anyone able to give me a hand with this? Would be appreciated.</p>