Fix check for UUID support

This commit is contained in:
Jesse Boyd 2018-07-07 08:50:43 +10:00
parent 18c92bea38
commit 185fe39942
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -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) {