Send username with heartbeat
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user