summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorEvilSeph <evilseph@unaligned.org>2011-05-05 16:57:22 -0400
committerEvilSeph <evilseph@unaligned.org>2011-05-05 17:56:52 -0400
commit99a7b91ef125227322d80bb3a42dcfa8b7664f75 (patch)
tree47164114e39c1b0f8bdb899c22cc8b4319749e62 /src/main/java/org
parent54e2254904153ad5fbc071468560c2305e9128a8 (diff)
downloadcraftbukkit-99a7b91ef125227322d80bb3a42dcfa8b7664f75.tar
craftbukkit-99a7b91ef125227322d80bb3a42dcfa8b7664f75.tar.gz
craftbukkit-99a7b91ef125227322d80bb3a42dcfa8b7664f75.tar.lz
craftbukkit-99a7b91ef125227322d80bb3a42dcfa8b7664f75.tar.xz
craftbukkit-99a7b91ef125227322d80bb3a42dcfa8b7664f75.zip
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.
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index 8632efad..9ac65d54 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;
}