diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-07-24 16:28:48 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-07-24 16:28:48 -0400 |
commit | b8de3d5ddc0032a96189250e43779af525a31580 (patch) | |
tree | 9b52930efef82db611527e8a7b40497414729ae8 /me/Danker/handlers | |
parent | 17643172df0eec7521996b786ea3f74bae8acb43 (diff) | |
download | SkyblockMod-b8de3d5ddc0032a96189250e43779af525a31580.tar.gz SkyblockMod-b8de3d5ddc0032a96189250e43779af525a31580.tar.bz2 SkyblockMod-b8de3d5ddc0032a96189250e43779af525a31580.zip |
Add /bank, other small changes
Fix getting profiles of person with 1 profile with no last_save. Toggles are now off by default.
Diffstat (limited to 'me/Danker/handlers')
-rw-r--r-- | me/Danker/handlers/APIHandler.java | 2 | ||||
-rw-r--r-- | me/Danker/handlers/ConfigHandler.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/me/Danker/handlers/APIHandler.java b/me/Danker/handlers/APIHandler.java index e81b1f1..783ca92 100644 --- a/me/Danker/handlers/APIHandler.java +++ b/me/Danker/handlers/APIHandler.java @@ -125,7 +125,7 @@ public class APIHandler { for (JsonElement profile : profilesArray) { JsonObject profileJSON = profile.getAsJsonObject(); - long profileLastSave = 0; + long profileLastSave = 1; if (profileJSON.get("members").getAsJsonObject().get(UUID).getAsJsonObject().has("last_save")) { profileLastSave = profileJSON.get("members").getAsJsonObject().get(UUID).getAsJsonObject().get("last_save").getAsLong(); } diff --git a/me/Danker/handlers/ConfigHandler.java b/me/Danker/handlers/ConfigHandler.java index 64ada11..9de284f 100644 --- a/me/Danker/handlers/ConfigHandler.java +++ b/me/Danker/handlers/ConfigHandler.java @@ -125,8 +125,8 @@ public class ConfigHandler { public static void reloadConfig() { // Config init - if (!hasKey("toggles", "GParty")) writeBooleanConfig("toggles", "GParty", true); - if (!hasKey("toggles", "Coords")) writeBooleanConfig("toggles", "Coords", true); + if (!hasKey("toggles", "GParty")) writeBooleanConfig("toggles", "GParty", false); + if (!hasKey("toggles", "Coords")) writeBooleanConfig("toggles", "Coords", false); if (!hasKey("api", "APIKey")) writeStringConfig("api", "APIKey", ""); // Wolf Loot |