diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-08-09 19:47:37 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-08-09 19:47:37 -0400 |
commit | f9b31855d92b144f90bc8a566b2c291524c007fa (patch) | |
tree | ce7628953c94ecc906fa47c728857f26fac3cab1 /src/main/java/me/Danker/commands | |
parent | a0866865a3c51adf96799f93f59a6d49b834efde (diff) | |
download | SkyblockMod-f9b31855d92b144f90bc8a566b2c291524c007fa.tar.gz SkyblockMod-f9b31855d92b144f90bc8a566b2c291524c007fa.tar.bz2 SkyblockMod-f9b31855d92b144f90bc8a566b2c291524c007fa.zip |
Fix some toggles not being saved to config
Diffstat (limited to 'src/main/java/me/Danker/commands')
-rw-r--r-- | src/main/java/me/Danker/commands/ToggleCommand.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/commands/ToggleCommand.java b/src/main/java/me/Danker/commands/ToggleCommand.java index decf99a..8550a8c 100644 --- a/src/main/java/me/Danker/commands/ToggleCommand.java +++ b/src/main/java/me/Danker/commands/ToggleCommand.java @@ -66,9 +66,11 @@ public class ToggleCommand extends CommandBase implements ICommand { player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Golden T6 enchants has been set to " + EnumChatFormatting.DARK_GREEN + goldenToggled + EnumChatFormatting.GREEN + ".")); } else if (arg1[0].equalsIgnoreCase("slayercount")) { slayerCountTotal = !slayerCountTotal; + cf.writeBooleanConfig("toggles", "SlayerCount", slayerCountTotal); player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Counting total 20% slayer drops has been set to " + EnumChatFormatting.DARK_GREEN + slayerCountTotal + EnumChatFormatting.GREEN + ".")); } else if (arg1[0].equalsIgnoreCase("rngesusalerts")) { rngesusAlerts = !rngesusAlerts; + cf.writeBooleanConfig("toggles", "RNGesusAlerts", rngesusAlerts); player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Slayer RNGesus alerts has been set to " + EnumChatFormatting.DARK_GREEN + rngesusAlerts + EnumChatFormatting.GREEN + ".")); } else if (arg1[0].equalsIgnoreCase("list")) { player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Guild party notifications: " + EnumChatFormatting.DARK_GREEN + gpartyToggled + "\n" + |