aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/handlers/ConfigHandler.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-09-04 19:37:28 -0400
committerbowser0000 <bowser0000@gmail.com>2020-09-04 19:37:28 -0400
commitc33d70d29a8976079be54507ea8c53cec1a01a49 (patch)
treeb8b4913e943bb57c021128e311aff3e5e10090ed /src/main/java/me/Danker/handlers/ConfigHandler.java
parent6921e6b5804bebcdabd0a05f187273f005b58bea (diff)
downloadSkyblockMod-c33d70d29a8976079be54507ea8c53cec1a01a49.tar.gz
SkyblockMod-c33d70d29a8976079be54507ea8c53cec1a01a49.tar.bz2
SkyblockMod-c33d70d29a8976079be54507ea8c53cec1a01a49.zip
Add dungeon timer, fix dungeon coins and time tracker
Diffstat (limited to 'src/main/java/me/Danker/handlers/ConfigHandler.java')
-rw-r--r--src/main/java/me/Danker/handlers/ConfigHandler.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/handlers/ConfigHandler.java b/src/main/java/me/Danker/handlers/ConfigHandler.java
index 1955b3d..34aaffe 100644
--- a/src/main/java/me/Danker/handlers/ConfigHandler.java
+++ b/src/main/java/me/Danker/handlers/ConfigHandler.java
@@ -180,6 +180,7 @@ public class ConfigHandler {
if (!hasKey("toggles", "AOTD")) writeBooleanConfig("toggles", "AOTD", false);
if (!hasKey("toggles", "SceptreMessages")) writeBooleanConfig("toggles", "SceptreMessages", true);
if (!hasKey("toggles", "PetColors")) writeBooleanConfig("toggles", "PetColors", false);
+ if (!hasKey("toggles", "DungeonTimer")) writeBooleanConfig("toggles", "DungeonTimer", false);
if (!hasKey("api", "APIKey")) writeStringConfig("api", "APIKey", "");
@@ -291,8 +292,11 @@ public class ConfigHandler {
if (!hasKey("locations", "coordsY")) writeIntConfig("locations", "coordsY", height - 25);
if (!hasKey("locations", "displayX")) writeIntConfig("locations", "displayX", 80);
if (!hasKey("locations", "displayY")) writeIntConfig("locations", "displayY", 5);
+ if (!hasKey("locations", "dungeonTimerX")) writeIntConfig("locations", "dungeonTimerX", 5);
+ if (!hasKey("locations", "dungeonTimerY")) writeIntConfig("locations", "dungeonTimerY", 5);
if (!hasKey("scales", "coordsScale")) writeDoubleConfig("scales", "coordsScale", 1);
if (!hasKey("scales", "displayScale")) writeDoubleConfig("scales", "displayScale", 1);
+ if (!hasKey("scales", "dungeonTimerScale")) writeDoubleConfig("scales", "dungeonTimerScale", 1);
final ToggleCommand tf = new ToggleCommand();
tf.gpartyToggled = getBoolean("toggles", "GParty");
@@ -306,6 +310,7 @@ public class ConfigHandler {
tf.aotdToggled = getBoolean("toggles", "AOTD");
tf.sceptreMessages = getBoolean("toggles", "SceptreMessages");
tf.petColoursToggled = getBoolean("toggles", "PetColors");
+ tf.dungeonTimerToggled = getBoolean("toggles", "DungeonTimer");
final LootCommand lc = new LootCommand();
// Wolf
@@ -416,10 +421,13 @@ public class ConfigHandler {
moc.coordsXY[1] = getInt("locations", "coordsY");
moc.displayXY[0] = getInt("locations", "displayX");
moc.displayXY[1] = getInt("locations", "displayY");
+ moc.dungeonTimerXY[0] = getInt("locations", "dungeonTimerX");
+ moc.dungeonTimerXY[1] = getInt("locations", "dungeonTimerY");
final ScaleCommand sc = new ScaleCommand();
sc.coordsScale = getDouble("scales", "coordsScale");
sc.displayScale = getDouble("scales", "displayScale");
+ sc.dungeonTimerScale = getDouble("scales", "dungeonTimerScale");
}
}