From d42ae87ea3e4ef561cb31dc41a743bcb03fc6e9f Mon Sep 17 00:00:00 2001 From: boy0001 Date: Wed, 4 Feb 2015 15:44:27 +1100 Subject: [PATCH] fixes offline --- .../com/intellectualcrafters/plot/util/ExpireManager.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ExpireManager.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ExpireManager.java index 9f9ad0543..7804ea281 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ExpireManager.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ExpireManager.java @@ -164,7 +164,12 @@ public class ExpireManager { String filename = null; if (PlotMain.checkVersion()) { foldername = "playerdata"; - filename = uuid.toString() + ".dat"; + try { + filename = op.getUniqueId() +".dat"; + } + catch (Throwable e) { + filename = uuid.toString() + ".dat"; + } } else { foldername = "players";