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.

By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
Bukkit/Spigot
2011-05-05 16:52:50 -04:00
parent 5b05f71501
commit d6f44121b1
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
*