diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-25 02:22:06 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-25 02:22:06 +0100 |
commit | cb49379b2426df71611cb85da384a5930caca208 (patch) | |
tree | c8340ca213472e7bed6c2a5ab5974cd973356538 /src/main/java/org | |
parent | 3c7a843944e4dacaeda0f1dd6122d3ee7abdf6e1 (diff) | |
download | craftbukkit-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.java | 4 |
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); } |