Added configuration and plugin data directory support to plugins.

By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-01-14 23:33:45 -08:00
parent 0bf9731255
commit 33e5645054
4 changed files with 87 additions and 20 deletions

View File

@@ -1,18 +1,34 @@
package org.bukkit.plugin;
import java.io.File;
import org.bukkit.Server;
import org.bukkit.util.config.Configuration;
/**
* Represents a Plugin
*/
public interface Plugin {
/**
* Returns the folder that the plugin data's files are located in.
*
* @return
*/
public File getDataFolder();
/**
* Returns the plugin.yaml file containing the details for this plugin
*
* @return Contents of the plugin.yaml file
*/
public PluginDescriptionFile getDescription();
/**
* Returns the main configuration file. It should be loaded.
*
* @return
*/
public Configuration getConfiguration();
/**
* Gets the associated PluginLoader responsible for this plugin