Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Fix #19

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Fix #19

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package de.damcraft.serverseeker.ssapi.requests;

import com.google.gson.JsonObject;
import de.damcraft.serverseeker.ServerSeekerSystem;

public class WhereisRequest {
private final String api_key = ServerSeekerSystem.get().apiKey;
private enum PlayerSearchType {
Name,
Uuid
Expand All @@ -25,6 +27,7 @@ public void setUuid(String uuid) {
public String json() {
JsonObject jo = new JsonObject();
jo.addProperty(playerSearchType.name().toLowerCase(), playerSearchValue);
jo.addProperty("api_key", api_key);
return jo.toString();
}
}