This repository was archived by the owner on Nov 24, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
net/olympiccode/vhackos/api/entities/impl Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ sourceCompatibility = 1.8
88
99repositories {
1010 mavenCentral()
11+ maven { url ' https://jitpack.io' }
1112}
1213
1314dependencies {
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments