@@ -225,7 +225,7 @@ public class ChatClient
|
|||||||
|
|
||||||
public boolean submitGc(String username, int gc) throws IOException
|
public boolean submitGc(String username, int gc) throws IOException
|
||||||
{
|
{
|
||||||
HttpUrl url = RuneLiteAPI.getPlusApiBase().newBuilder()
|
HttpUrl url = RuneLiteAPI.getApiBase().newBuilder()
|
||||||
.addPathSegment("chat")
|
.addPathSegment("chat")
|
||||||
.addPathSegment("gc")
|
.addPathSegment("gc")
|
||||||
.addQueryParameter("name", username)
|
.addQueryParameter("name", username)
|
||||||
@@ -245,7 +245,7 @@ public class ChatClient
|
|||||||
|
|
||||||
public int getGc(String username) throws IOException
|
public int getGc(String username) throws IOException
|
||||||
{
|
{
|
||||||
HttpUrl url = RuneLiteAPI.getPlusApiBase().newBuilder()
|
HttpUrl url = RuneLiteAPI.getApiBase().newBuilder()
|
||||||
.addPathSegment("chat")
|
.addPathSegment("chat")
|
||||||
.addPathSegment("gc")
|
.addPathSegment("gc")
|
||||||
.addQueryParameter("name", username)
|
.addQueryParameter("name", username)
|
||||||
@@ -255,7 +255,7 @@ public class ChatClient
|
|||||||
.url(url)
|
.url(url)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
try (Response response = RuneLiteAPI.RLP_CLIENT.newCall(request).execute())
|
try (Response response = RuneLiteAPI.CLIENT.newCall(request).execute())
|
||||||
{
|
{
|
||||||
if (!response.isSuccessful())
|
if (!response.isSuccessful())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user