Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.

Commit f4ac684

Browse files
authored
Merge pull request #2 from OlympicCode/dev
aa
2 parents 41d1c16 + 3bde9e2 commit f4ac684

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ sourceCompatibility = 1.8
88

99
repositories {
1010
mavenCentral()
11+
maven { url 'https://jitpack.io' }
1112
}
1213

1314
dependencies {

src/main/java/examples/BrainStormExample.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public static void main(String[] args) {
5151
// api.getAppManager().getApp(AppType.Spam).getAsUpdateable().fillTasks();
5252
int lvl = 10000000;
5353
App capp = null;
54+
System.out.println(api.getStats().getUsername());
5455
System.out.println(api.getAppManager().getApps());
5556
for (App app : api.getAppManager().getApps()) {
5657
if (!app.isInstalled() && app.getRequiredLevel() <= api.getStats().getLevel()) app.getAsInstallable().install();

src/main/java/net/olympiccode/vhackos/api/entities/impl/vHackOSAPIImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private void updateData() {
111111
stats.setLevel(Long.parseLong(object.optString("level", "0")));
112112
stats.setLevelPorcentage(Long.parseLong(object.optString("exppc", "0")));
113113
stats.setMoney(Long.parseLong(object.optString("money", "0")));
114-
stats.setUsername(object.optString("statsname"));
114+
stats.setUsername(object.optString("username"));
115115
stats.setNetcoins(Long.parseLong(object.optString("netcoins", "0")));
116116
stats.setRequiredExperience(Long.parseLong(object.optString("expreq", "0")));
117117
} catch (JSONException e) {

0 commit comments

Comments
 (0)