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

Commit

Permalink
Merge pull request #19 from Paddyk45/better-ser
Browse files Browse the repository at this point in the history
whereis api_key missing fix
  • Loading branch information
DAMcraft authored Nov 9, 2023
2 parents a5d9204 + 3dc7eea commit 06bf279
Showing 1 changed file with 3 additions and 0 deletions.
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();
}
}

0 comments on commit 06bf279

Please sign in to comment.