From a013800772467f56542488c10144a6756ad3f39d Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot 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 By: Dinnerbone --- .../src/main/java/org/bukkit/craftbukkit/CraftServer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 1a3578e5d3..84275c016a 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/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); }