Getting the plugin directory + saving files

Discussion in 'Plugin Development' started by Bauer, Jul 17, 2012.

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

    Bauer

    I'm making a log file for my plugin. I know how to do it the actual Java way, but I'm guessing there was some way implemented into bukkit that makes file creation a lot easier. Is there? If so, could someone please assist me in using it. Or if that doesn't exist, is there at least some way to just get my plugin directory.

    Thanks. :)
     
  2. File pluginDirectory = plugin.getDataFolder()
     
  3. Offline

    Bauer

    So I take it there's no built in Bukkit friendly FileWriter/FileReader?
     
  4. no, you just need to use the 1 inside java
     
  5. Offline

    Bauer

    Ok
     
Thread Status:
Not open for further replies.

Share This Page