How to make a FileConfiguration file into a File

Discussion in 'Plugin Development' started by Acer_Mortem, May 13, 2014.

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

    Acer_Mortem

    I currently have a FileConfiguraton File:

    Code:
    FileConfiguration fc = plugin.dfs.getCustomConfig();
    How could I change this FileConfigurationFile into a regular File?

    I've tried casting File to it like so:

    Code:
            File f = (File) plugin.dfs.getCustomConfig();
    But that is not possible.

    Thanks for the help! :)
     
  2. Offline

    oscarshi1995

    new File(plugin.dfs.getCustomConfig().getFilePath);
     
Thread Status:
Not open for further replies.

Share This Page