Added support for an update on load feature for plugins. Thanks Raphfrk!

Any files placed in the new (optional) update folder are automatically copied into the plugins directory the next time a reload happens. This allows safe updating of the plugin .jar files.
This commit is contained in:
EvilSeph
2011-05-05 16:52:50 -04:00
parent e3ce0071fd
commit bb7b91b4d4
3 changed files with 83 additions and 1 deletions

View File

@@ -83,6 +83,14 @@ public interface Server {
*/
public int broadcastMessage(String message);
/**
* Gets the name of the update folder. The update folder is used to safely update
* plugins at the right moment on a plugin load.
*
* @return The name of the update folder
*/
public String getUpdateFolder();
/**
* Gets a player object by the given username
*