Solved Deleting File Help!!!

Discussion in 'Plugin Development' started by Binyon13, May 20, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Binyon13

    My Problem is that when I remove the file it clear all the stuff in the file but does not remove the file from the 'Clans' folder.

    Code:
    public void removeFile(String c) {
            Plugin pl = Bukkit.getServer().getPluginManager()
                    .getPlugin("Derp");
     
            dfile = new File(pl.getDataFolder() + File.separator + "Clans", c
                    + ".yml");
     
            dfile..delete()
        }
    EDIT: I fixed it :D
     
Thread Status:
Not open for further replies.

Share This Page