From 2439031c400a25014f0e0735c33172344e278810 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 15 Jan 2011 00:34:01 -0800 Subject: [PATCH] Plugin data folders are now no longer created by default. By: sk89q --- paper-api/src/main/java/org/bukkit/plugin/Plugin.java | 3 ++- paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java | 3 ++- .../src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/plugin/Plugin.java b/paper-api/src/main/java/org/bukkit/plugin/Plugin.java index 9084f38fa1..d63c647428 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/Plugin.java +++ b/paper-api/src/main/java/org/bukkit/plugin/Plugin.java @@ -10,7 +10,8 @@ import org.bukkit.util.config.Configuration; */ public interface Plugin { /** - * Returns the folder that the plugin data's files are located in. + * Returns the folder that the plugin data's files are located in. The + * folder may not yet exist. * * @return */ diff --git a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java index 629ec09161..0f1f2ab740 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java +++ b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java @@ -42,7 +42,8 @@ public abstract class JavaPlugin implements Plugin { } /** - * Returns the folder that the plugin data's files are located in. + * Returns the folder that the plugin data's files are located in. The + * folder may not yet exist. * * @return */ diff --git a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java index 8afc75dbe9..1a05e7dbab 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java +++ b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java @@ -100,7 +100,7 @@ public final class JavaPluginLoader implements PluginLoader { dataFolder = new File(file.getParentFile(), filename + "_"); } - dataFolder.mkdirs(); + //dataFolder.mkdirs(); return dataFolder; }