Send username with heartbeat

This commit is contained in:
Patrick
2026-07-12 18:42:03 +02:00
parent d09910d2bc
commit eab37b4587
@@ -45,12 +45,14 @@ public class PlaytimeTracker {
}
UUID uuid = client.player.getUUID();
String username = client.player.getName().getString();
String json = """
{
"uuid": "%s"
"uuid": "%s",
"username": "%s"
}
""".formatted(uuid);
""".formatted(uuid, username);
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(CitrusDevClient.API_URL + "/api/heartbeat"))