diff options
author | raphfrk <raphfrk@gmail.com> | 2011-08-14 05:34:15 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-25 02:22:36 +0100 |
commit | 7e5b2c1f30c0d0a4ce6a847fc3f78de35aa900e4 (patch) | |
tree | 9b22f8cd52be0fc47f77edb43509edd280aabb6c | |
parent | ef0834736a5c6bdcd2ffbddfe59fbfef2f3efc7d (diff) | |
download | bukkit-7e5b2c1f30c0d0a4ce6a847fc3f78de35aa900e4.tar bukkit-7e5b2c1f30c0d0a4ce6a847fc3f78de35aa900e4.tar.gz bukkit-7e5b2c1f30c0d0a4ce6a847fc3f78de35aa900e4.tar.lz bukkit-7e5b2c1f30c0d0a4ce6a847fc3f78de35aa900e4.tar.xz bukkit-7e5b2c1f30c0d0a4ce6a847fc3f78de35aa900e4.zip |
Adds a method that returns the File representation of the update folder. The previous method just returns the filename and doesn't provide the path
-rw-r--r-- | src/main/java/org/bukkit/Server.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index fcf73432..a16b207d 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -10,6 +10,7 @@ import java.util.Map; import java.util.Set; import java.util.UUID; import java.util.logging.Logger; +import java.io.File; import org.bukkit.command.PluginCommand; import org.bukkit.command.CommandSender; @@ -148,11 +149,21 @@ public interface Server { * Gets the name of the update folder. The update folder is used to safely update * plugins at the right moment on a plugin load. * + * The update folder name is relative to the plugins folder. + * * @return The name of the update folder */ public String getUpdateFolder(); /** + * Gets the update folder. The update folder is used to safely update + * plugins at the right moment on a plugin load. + * + * @return The name of the update folder + */ + public File getUpdateFolderFile(); + + /** * Gets a player object by the given username * * This method may not return objects for offline players |