From 185fe39942ecaf5b125d745f4ca8bc610132560a Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 7 Jul 2018 08:50:43 +1000 Subject: [PATCH] Fix check for UUID support --- Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java index 9ee0332f5..fe3bbe0fd 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java @@ -737,7 +737,11 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain @Override public UUIDHandlerImplementation initUUIDHandler() { - boolean checkVersion = PS.get().checkVersion(getServerVersion(), BukkitVersion.v1_7_6); + boolean checkVersion = false; + try { + OfflinePlayer.class.getDeclaredMethod("getUniqueID"); + checkVersion = true; + } catch (Throwable ignore) {} UUIDWrapper wrapper; if (Settings.UUID.OFFLINE) { if (Settings.UUID.FORCE_LOWERCASE) {