bedrock uuid check
This commit is contained in:
1 parent
a4063c3300
commit
edd67a4fc5
1 file changed
+4
-1
@@ -92,7 +92,7 @@ public final class PlayerHandler {
|
||||
state.phoneNumber,
|
||||
player.getUsername(),
|
||||
player.getUuid(),
|
||||
"java"
|
||||
isBedrockUuid(player.getUuid()) ? "bedrock" : "java"
|
||||
);
|
||||
} catch (Api.SignupError e) {
|
||||
e.printStackTrace();
|
||||
@@ -121,4 +121,7 @@ public final class PlayerHandler {
|
||||
default -> "Anmeldung fehlgeschlagen. Bitte später erneut versuchen.";
|
||||
};
|
||||
}
|
||||
public static boolean isBedrockUuid(UUID uuid) {
|
||||
return uuid.getMostSignificantBits() == 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user