From c761a80bf915b45c549aef4c9df72ac41daac9f9 Mon Sep 17 00:00:00 2001 From: Byteflux Date: Fri, 8 May 2015 14:37:29 -0700 Subject: [PATCH] Fix UUID caching when using a non-standard world path --- .../intellectualcrafters/plot/util/bukkit/UUIDHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/bukkit/UUIDHandler.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/bukkit/UUIDHandler.java index 2d8125751..b3fbcdcdb 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/bukkit/UUIDHandler.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/bukkit/UUIDHandler.java @@ -114,7 +114,7 @@ public class UUIDHandler { UUIDHandler.CACHED = true; if (Settings.TWIN_MODE_UUID) { HashSet all = getAllUUIDS(); - final File playerdataFolder = new File(world + File.separator + "playerdata"); + final File playerdataFolder = new File(Bukkit.getWorldContainer(), world + File.separator + "playerdata"); String[] dat = playerdataFolder.list(new FilenameFilter() { @Override public boolean accept(final File f, final String s) { @@ -146,7 +146,7 @@ public class UUIDHandler { final HashSet names = new HashSet<>(); for (final String worldname : worlds) { // Getting UUIDs - final File playerdataFolder = new File(worldname + File.separator + "playerdata"); + final File playerdataFolder = new File(Bukkit.getWorldContainer(), worldname + File.separator + "playerdata"); String[] dat = playerdataFolder.list(new FilenameFilter() { @Override public boolean accept(final File f, final String s) {