aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/DankerGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-04-16 19:05:53 -0400
committerbowser0000 <bowser0000@gmail.com>2022-04-16 19:05:53 -0400
commit1e2036e6ca3b10595ba27691ab4ee0a87d31f052 (patch)
treec6a3c5d0c81c90303b57fa14941ad256e464679c /src/main/java/me/Danker/gui/DankerGui.java
parent33da58bc40a76e7ac8d93a880effdefda0dcd060 (diff)
downloadSkyblockMod-1e2036e6ca3b10595ba27691ab4ee0a87d31f052.tar.gz
SkyblockMod-1e2036e6ca3b10595ba27691ab4ee0a87d31f052.tar.bz2
SkyblockMod-1e2036e6ca3b10595ba27691ab4ee0a87d31f052.zip
Add automatically joining skyblock
Diffstat (limited to 'src/main/java/me/Danker/gui/DankerGui.java')
-rw-r--r--src/main/java/me/Danker/gui/DankerGui.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/gui/DankerGui.java b/src/main/java/me/Danker/gui/DankerGui.java
index fb84b0a..2900489 100644
--- a/src/main/java/me/Danker/gui/DankerGui.java
+++ b/src/main/java/me/Danker/gui/DankerGui.java
@@ -87,6 +87,7 @@ public class DankerGui extends GuiScreen {
private GuiButton bonzoTimer;
private GuiButton dungeonScore;
private GuiButton hideArmour;
+ private GuiButton autoJoinSkyblock;
// Chat Messages
private GuiButton sceptreMessages;
private GuiButton midasStaffMessages;
@@ -178,6 +179,7 @@ public class DankerGui extends GuiScreen {
abilityCooldown = new FeatureButton("Ability Cooldowns: " + Utils.getColouredBoolean(ToggleCommand.abilityCooldowns), "Displays ability cooldowns.");
dungeonScore = new FeatureButton("Dungeon Score Display: " + Utils.getColouredBoolean(ToggleCommand.dungeonScore), "Displays an estimated dungeon score with secrets.");
hideArmour = new FeatureButton("Hide Player Armour: " + Utils.getColouredBoolean(ToggleCommand.hideArmour), "Makes player armour invisible, showing their skin.");
+ autoJoinSkyblock = new FeatureButton("Automatically Join Skyblock: " + Utils.getColouredBoolean(ToggleCommand.autoJoinSkyblock), "Automatically join Skyblock when you join Hypixel.\nYou have an addiction.");
allButtons.clear();
allButtons.add(changeDisplay);
@@ -235,6 +237,7 @@ public class DankerGui extends GuiScreen {
allButtons.add(abilityCooldown);
allButtons.add(dungeonScore);
allButtons.add(hideArmour);
+ allButtons.add(autoJoinSkyblock);
search.setText(initSearchText);
search.setVisible(true);
@@ -518,6 +521,10 @@ public class DankerGui extends GuiScreen {
ToggleCommand.hideArmour = !ToggleCommand.hideArmour;
ConfigHandler.writeBooleanConfig("toggles", "HideArmour", ToggleCommand.hideArmour);
hideArmour.displayString = "Hide Player Armour: " + Utils.getColouredBoolean(ToggleCommand.hideArmour);
+ } else if (button == autoJoinSkyblock) {
+ ToggleCommand.autoJoinSkyblock = !ToggleCommand.autoJoinSkyblock;
+ ConfigHandler.writeBooleanConfig("toggles", "AutoJoinSkyblock", ToggleCommand.autoJoinSkyblock);
+ autoJoinSkyblock.displayString = "Automatically Join Skyblock: " + Utils.getColouredBoolean(ToggleCommand.autoJoinSkyblock);
}
}