From f3af61fe3c69917353b7af938d70ad804da82900 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sun, 12 Apr 2015 15:24:54 +1000 Subject: [PATCH] Finished adding new lowercase UUID mode (mostly for Offline servers) --- .../com/intellectualcrafters/plot/BukkitMain.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/BukkitMain.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/BukkitMain.java index 66951e06c..2731a76f9 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/BukkitMain.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/BukkitMain.java @@ -63,6 +63,7 @@ import com.intellectualcrafters.plot.util.bukkit.SetBlockFast_1_8; import com.intellectualcrafters.plot.util.bukkit.SetBlockSlow; import com.intellectualcrafters.plot.util.bukkit.UUIDHandler; import com.intellectualcrafters.plot.uuid.DefaultUUIDWrapper; +import com.intellectualcrafters.plot.uuid.LowerOfflineUUIDWrapper; import com.intellectualcrafters.plot.uuid.OfflineUUIDWrapper; import com.intellectualcrafters.plot.uuid.UUIDWrapper; import com.sk89q.worldedit.WorldEdit; @@ -351,13 +352,23 @@ public class BukkitMain extends JavaPlugin implements Listener, IPlotMain { AbstractTitle.TITLE_CLASS = new DefaultTitle(); } if (Settings.OFFLINE_MODE) { - UUIDHandler.uuidWrapper = new OfflineUUIDWrapper(); + if (Settings.UUID_LOWERCASE) { + UUIDHandler.uuidWrapper = new LowerOfflineUUIDWrapper(); + } + else { + UUIDHandler.uuidWrapper = new OfflineUUIDWrapper(); + } Settings.OFFLINE_MODE = true; } else if (checkVersion) { UUIDHandler.uuidWrapper = new DefaultUUIDWrapper(); Settings.OFFLINE_MODE = false; } else { - UUIDHandler.uuidWrapper = new OfflineUUIDWrapper(); + if (Settings.UUID_LOWERCASE) { + UUIDHandler.uuidWrapper = new LowerOfflineUUIDWrapper(); + } + else { + UUIDHandler.uuidWrapper = new OfflineUUIDWrapper(); + } Settings.OFFLINE_MODE = true; } if (Settings.OFFLINE_MODE) {