mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Fix check for UUID support
This commit is contained in:
parent
18c92bea38
commit
185fe39942
@ -737,7 +737,11 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UUIDHandlerImplementation initUUIDHandler() {
|
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;
|
UUIDWrapper wrapper;
|
||||||
if (Settings.UUID.OFFLINE) {
|
if (Settings.UUID.OFFLINE) {
|
||||||
if (Settings.UUID.FORCE_LOWERCASE) {
|
if (Settings.UUID.FORCE_LOWERCASE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user