summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-09-25 02:22:06 +0100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-09-25 02:22:06 +0100
commitcb49379b2426df71611cb85da384a5930caca208 (patch)
treec8340ca213472e7bed6c2a5ab5974cd973356538 /src/main/java/org
parent3c7a843944e4dacaeda0f1dd6122d3ee7abdf6e1 (diff)
downloadcraftbukkit-cb49379b2426df71611cb85da384a5930caca208.tar
craftbukkit-cb49379b2426df71611cb85da384a5930caca208.tar.gz
craftbukkit-cb49379b2426df71611cb85da384a5930caca208.tar.lz
craftbukkit-cb49379b2426df71611cb85da384a5930caca208.tar.xz
craftbukkit-cb49379b2426df71611cb85da384a5930caca208.zip
Adds a method that returns the File representation of the update folder. Thanks raphfrk
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index 1a3578e5..84275c01 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -319,6 +319,10 @@ public final class CraftServer implements Server {
return this.configuration.getString("settings.update-folder", "update");
}
+ public File getUpdateFolderFile() {
+ return new File((File) console.options.valueOf("plugins"), this.configuration.getString("settings.update-folder", "update"));
+ }
+
public int getPingPacketLimit() {
return this.configuration.getInt("settings.ping-packet-limit", 100);
}