Added reloadConfig() plugin method

This commit is contained in:
Nathan Adams
2011-10-11 15:50:59 +01:00
parent bb3ef5ff14
commit c97ea145ea
2 changed files with 17 additions and 8 deletions

View File

@@ -58,6 +58,11 @@ public interface Plugin extends CommandExecutor {
* Saves the {@link FileConfiguration} retrievable by {@link #getConfig()}.
*/
public void saveConfig();
/**
* Discards any data in {@link #getConfig()} and reloads from disk.
*/
public void reloadConfig();
/**
* Gets the associated PluginLoader responsible for this plugin