Custom Plugin Directories

Discussion in 'Plugin Development' started by Tazzernator, Jan 21, 2011.

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

    Tazzernator

    As many devs probably know, users can opt to have an alternate plugin directory through the command line when starting craftbukkit.

    if you have any settings in the plugins folder, don't hard code it in, rather, do the following:

    Code:
            File folder = plugin.getDataFolder();
            String folderName = folder.getParent();
    Just a friendly reminder! I made the mistake first :p
     
  2. Offline

    Ant59

    Thanks!
     
Thread Status:
Not open for further replies.

Share This Page