aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/DankerGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-07-30 02:14:10 -0400
committerbowser0000 <bowser0000@gmail.com>2021-07-30 02:14:10 -0400
commitd534e7e9da3c3d20825cda831f2814249e212d5a (patch)
treeec5e26865466531a0f041e17bf109929c910e39a /src/main/java/me/Danker/gui/DankerGui.java
parent362ecd929a3b506535e31ad4329be8cec52e0bc6 (diff)
downloadSkyblockMod-d534e7e9da3c3d20825cda831f2814249e212d5a.tar.gz
SkyblockMod-d534e7e9da3c3d20825cda831f2814249e212d5a.tar.bz2
SkyblockMod-d534e7e9da3c3d20825cda831f2814249e212d5a.zip
Auto accept reparty
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 bed219a..f2d3bf3 100644
--- a/src/main/java/me/Danker/gui/DankerGui.java
+++ b/src/main/java/me/Danker/gui/DankerGui.java
@@ -70,6 +70,7 @@ public class DankerGui extends GuiScreen {
private GuiButton customColouredNames;
private GuiButton endOfFarmAlert;
private GuiButton gemstoneLore;
+ private GuiButton autoAcceptReparty;
// Chat Messages
private GuiButton sceptreMessages;
private GuiButton midasStaffMessages;
@@ -161,6 +162,7 @@ public class DankerGui extends GuiScreen {
customColouredNames = new FeatureButton("Custom Name Colors: " + Utils.getColouredBoolean(ToggleCommand.customColouredNames), "Replaces some player's usernames with a custom color.");
endOfFarmAlert = new FeatureButton("Alert When Reaching End of Farm: " + Utils.getColouredBoolean(ToggleCommand.endOfFarmAlert), "Alerts when you go past coords set with /dsmfarmlength.");
gemstoneLore = new FeatureButton("Applied Gemstones in Lore: " + Utils.getColouredBoolean(ToggleCommand.gemstoneLore), "Adds applied gemstones to item tooltip.");
+ autoAcceptReparty = new FeatureButton("Auto Accept Reparty: " + Utils.getColouredBoolean(ToggleCommand.autoAcceptReparty), "Automatically rejoins parties when disbanded and invited.");
allButtons.clear();
allButtons.add(changeDisplay);
@@ -210,6 +212,7 @@ public class DankerGui extends GuiScreen {
allButtons.add(customColouredNames);
allButtons.add(endOfFarmAlert);
allButtons.add(gemstoneLore);
+ allButtons.add(autoAcceptReparty);
search.setText(initSearchText);
search.setVisible(true);
@@ -466,6 +469,10 @@ public class DankerGui extends GuiScreen {
ToggleCommand.gemstoneLore = !ToggleCommand.gemstoneLore;
ConfigHandler.writeBooleanConfig("toggles", "GemstoneLore", ToggleCommand.gemstoneLore);
gemstoneLore.displayString = "Applied Gemstones in Lore: " + Utils.getColouredBoolean(ToggleCommand.gemstoneLore);
+ } else if (button == autoAcceptReparty) {
+ ToggleCommand.autoAcceptReparty = !ToggleCommand.autoAcceptReparty;
+ ConfigHandler.writeBooleanConfig("toggles", "AutoAcceptReparty", ToggleCommand.autoAcceptReparty);
+ autoAcceptReparty.displayString = "Auto Accept Reparty: " + Utils.getColouredBoolean(ToggleCommand.autoAcceptReparty);
}
}