Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Changes -> fixed setting reset after setup
Browse files Browse the repository at this point in the history
  • Loading branch information
EinfacheSache committed Sep 2, 2023
1 parent dd43738 commit 55d3a8a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public boolean updateStats(RequestBody requestBody, String identifier, String ga
}

public void setProxyProtocol(boolean setting) {
rest.request(RequestType.POST_GAMESHIELD_UPDATE, RequestBody.create(MediaType.parse("application/json"), new JsonBuilder().appendField("proxyProtocol", String.valueOf(setting)).build().toString()), Config.getGameShieldID());
JSONObject settings = rest.request(RequestType.GET_GAMESHIELD_INFO, null, Config.getGameShieldID()).getResponseBodyObject().getJSONObject("gameShieldSettings");
rest.request(RequestType.POST_GAMESHIELD_UPDATE, RequestBody.create(MediaType.parse("application/json"), settings.put("proxyProtocol", String.valueOf(setting)).toString()), Config.getGameShieldID());
}

public JSONObject getAnalytics() {
Expand Down

0 comments on commit 55d3a8a

Please sign in to comment.