From cb49379b2426df71611cb85da384a5930caca208 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Sun, 25 Sep 2011 02:22:06 +0100 Subject: [PATCH] Adds a method that returns the File representation of the update folder. Thanks raphfrk --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 1a3578e5d3..84275c016a 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); }