mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-29 18:27:36 +02:00
Fix third-party not premium player detection
This commit is contained in:
@ -80,6 +80,10 @@ public class MojangApiBukkit extends MojangApiConnector {
|
||||
}
|
||||
|
||||
String uuid = (String) mojangPlayer.get("id");
|
||||
if (uuid == null || uuid.equals("null")) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return FastLoginCore.parseId(uuid);
|
||||
}
|
||||
}
|
||||
|
@ -28,6 +28,10 @@ public class MojangApiBungee extends MojangApiConnector {
|
||||
mojangPlayer = BungeeCord.getInstance().gson.fromJson(json, MojangPlayer.class);
|
||||
}
|
||||
|
||||
if (mojangPlayer.getId() == null || mojangPlayer.getId().equals("null")) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return FastLoginCore.parseId(mojangPlayer.getId());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user