From ef75a286acd98ed5c8d0b4689842f6eef8042848 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Fri, 25 Nov 2011 03:47:12 +0000 Subject: [PATCH] Implemented world.getWorldFolder --- src/main/java/net/minecraft/server/PlayerNBTManager.java | 2 +- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/PlayerNBTManager.java b/src/main/java/net/minecraft/server/PlayerNBTManager.java index 284ff88642..04d9cea39a 100644 --- a/src/main/java/net/minecraft/server/PlayerNBTManager.java +++ b/src/main/java/net/minecraft/server/PlayerNBTManager.java @@ -53,7 +53,7 @@ public class PlayerNBTManager implements PlayerFileData, IDataManager { } } - protected File a() { + public File a() { // CraftBukkit - public to private return this.b; } diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 23469313f2..86e0e25ccd 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -1,6 +1,7 @@ package org.bukkit.craftbukkit; import com.google.common.collect.MapMaker; +import java.io.File; import org.bukkit.craftbukkit.entity.*; import org.bukkit.entity.*; import org.bukkit.entity.Entity; @@ -893,4 +894,8 @@ public class CraftWorld implements World { return this.getUID() == other.getUID(); } + + public File getWorldFolder() { + return ((PlayerNBTManager)world.q()).a(); + } }