From 99a7b91ef125227322d80bb3a42dcfa8b7664f75 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Thu, 5 May 2011 16:57:22 -0400 Subject: [PATCH] Added an update on load feature for plugins. Thanks Raphfrk! Any files placed in the configurable update folder are automatically copied into the plugins directory the next time a reload happens. This allows safe updating of the plugin .jar files. The name of the update folder is configurable through bukkit.yml. --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 8632efadbe..9ac65d54c3 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -87,6 +87,7 @@ public final class CraftServer implements Server { configuration.getString("database.password", "walrus"); configuration.getString("database.driver", "org.sqlite.JDBC"); configuration.getString("database.isolation", "SERIALIZABLE"); + configuration.getString("settings.update-folder", "update"); } public void loadPlugins() { @@ -239,6 +240,10 @@ public final class CraftServer implements Server { // End Temporary calls + public String getUpdateFolder() { + return this.configuration.getString("settings.update-folder", "update"); + } + public PluginManager getPluginManager() { return pluginManager; }