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

Commit

Permalink
Merge pull request #2 from OlympicCode/dev
Browse files Browse the repository at this point in the history
aa
  • Loading branch information
itsfolf authored Mar 11, 2018
2 parents 41d1c16 + 3bde9e2 commit f4ac684
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ sourceCompatibility = 1.8

repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions src/main/java/examples/BrainStormExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public static void main(String[] args) {
// api.getAppManager().getApp(AppType.Spam).getAsUpdateable().fillTasks();
int lvl = 10000000;
App capp = null;
System.out.println(api.getStats().getUsername());
System.out.println(api.getAppManager().getApps());
for (App app : api.getAppManager().getApps()) {
if (!app.isInstalled() && app.getRequiredLevel() <= api.getStats().getLevel()) app.getAsInstallable().install();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private void updateData() {
stats.setLevel(Long.parseLong(object.optString("level", "0")));
stats.setLevelPorcentage(Long.parseLong(object.optString("exppc", "0")));
stats.setMoney(Long.parseLong(object.optString("money", "0")));
stats.setUsername(object.optString("statsname"));
stats.setUsername(object.optString("username"));
stats.setNetcoins(Long.parseLong(object.optString("netcoins", "0")));
stats.setRequiredExperience(Long.parseLong(object.optString("expreq", "0")));
} catch (JSONException e) {
Expand Down

0 comments on commit f4ac684

Please sign in to comment.