chat commands: add ba high gamble command

This commit is contained in:
sdburns1998
2019-06-29 00:28:22 +02:00
parent a5d3e5de94
commit 63664fbac7
4 changed files with 76 additions and 6 deletions

View File

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