Yml file not creating

Discussion in 'Spigot Plugin Development' started by Snowmite, Jun 11, 2016.

  1. Replace
    Code (Text):

    File file = new File (getDataFolder(), File.separator + uuid + ".yml");

    file.mkdir();
     
    with
    Code (Text):

    File file = new File(getDataFolder(), uuid + ".yml");

    file.createNewFile();
     
     
    • Like Like x 1
  2. file.createNewFile();
    Creates the file
    file.mkdir();
    Creates the directory.
    File.MakeDirectory(), isn't the code, but it's what mkdir stands for.
     
    • Like Like x 1
  3. Thank you so much for all the help! Thank you thank you thank you!