aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/ResetLootCommand.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-08-13 00:35:14 -0400
committerbowser0000 <bowser0000@gmail.com>2020-08-13 00:35:14 -0400
commit72eb6d8b5df4c86fbf5fb63eb3edae0f8c7e14d8 (patch)
tree209f0ef1cf898e512891bdee997a901e72148b6a /src/main/java/me/Danker/commands/ResetLootCommand.java
parentb93db28ffa5fb44bbf3af350b11adf4b77b75b60 (diff)
downloadSkyblockMod-72eb6d8b5df4c86fbf5fb63eb3edae0f8c7e14d8.tar.gz
SkyblockMod-72eb6d8b5df4c86fbf5fb63eb3edae0f8c7e14d8.tar.bz2
SkyblockMod-72eb6d8b5df4c86fbf5fb63eb3edae0f8c7e14d8.zip
Add chat maddox menu and dungeons tracker
Don't have strings for Spirit Bone, Spirit Boots or Spirit Pet. Hoping that Spirit Pet tracking works.
Diffstat (limited to 'src/main/java/me/Danker/commands/ResetLootCommand.java')
-rw-r--r--src/main/java/me/Danker/commands/ResetLootCommand.java33
1 files changed, 28 insertions, 5 deletions
diff --git a/src/main/java/me/Danker/commands/ResetLootCommand.java b/src/main/java/me/Danker/commands/ResetLootCommand.java
index 1afc204..97ac151 100644
--- a/src/main/java/me/Danker/commands/ResetLootCommand.java
+++ b/src/main/java/me/Danker/commands/ResetLootCommand.java
@@ -23,7 +23,7 @@ public class ResetLootCommand extends CommandBase {
@Override
public String getCommandUsage(ICommandSender arg0) {
- return getCommandName() + "<zombie/spider/wolf/fishing/confirm/cancel>";
+ return getCommandName() + "<zombie/spider/wolf/fishing/catacombs/confirm/cancel>";
}
@Override
@@ -38,7 +38,7 @@ public class ResetLootCommand extends CommandBase {
if (confirmReset) {
return getListOfStringsMatchingLastWord(args, "confirm", "cancel");
} else {
- return getListOfStringsMatchingLastWord(args, "zombie", "spider", "wolf", "fishing");
+ return getListOfStringsMatchingLastWord(args, "zombie", "spider", "wolf", "fishing", "catacombs");
}
}
@@ -47,7 +47,7 @@ public class ResetLootCommand extends CommandBase {
final EntityPlayer player = (EntityPlayer) arg0;
if (arg1.length == 0) {
- player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /resetloot <zombie/spider/wolf/fishing>"));
+ player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /resetloot <zombie/spider/wolf/fishing/catacombs>"));
return;
}
@@ -63,6 +63,8 @@ public class ResetLootCommand extends CommandBase {
resetWolf();
} else if (resetOption.equalsIgnoreCase("fishing")) {
resetFishing();
+ } else if (resetOption.equalsIgnoreCase("catacombs")) {
+ resetCatacombs();
}
player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Reset complete."));
} else if (arg1[0].equalsIgnoreCase("cancel")) {
@@ -73,7 +75,7 @@ public class ResetLootCommand extends CommandBase {
EnumChatFormatting.RED + " Cancel by using /resetloot cancel."));
}
} else {
- if (arg1[0].equalsIgnoreCase("zombie") || arg1[0].equalsIgnoreCase("spider") || arg1[0].equalsIgnoreCase("wolf") || arg1[0].equalsIgnoreCase("fishing")) {
+ if (arg1[0].equalsIgnoreCase("zombie") || arg1[0].equalsIgnoreCase("spider") || arg1[0].equalsIgnoreCase("wolf") || arg1[0].equalsIgnoreCase("fishing") || arg1[0].equalsIgnoreCase("catacombs")) {
resetOption = arg1[0];
player.addChatMessage(new ChatComponentText(EnumChatFormatting.YELLOW + "Are you sure you want to reset the " + resetOption + " tracker?" +
" Confirm with " + EnumChatFormatting.GREEN + "/resetloot confirm" + EnumChatFormatting.YELLOW + "." +
@@ -82,7 +84,7 @@ public class ResetLootCommand extends CommandBase {
} else if (arg1[0].equalsIgnoreCase("confirm") || arg1[0].equalsIgnoreCase("cancel")) {
player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Pick something to reset first."));
} else {
- player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /resetloot <zombie/spider/wolf/fishing>"));
+ player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /resetloot <zombie/spider/wolf/fishing/catacombs>"));
}
}
}
@@ -177,5 +179,26 @@ public class ResetLootCommand extends CommandBase {
cf.deleteCategory("fishing");
cf.reloadConfig();
}
+
+ static void resetCatacombs() {
+ LootCommand lc = new LootCommand();
+ ConfigHandler cf = new ConfigHandler();
+ lc.recombobulatorsSession = 0;
+ lc.fumingPotatoBooksSession = 0;
+ lc.bonzoStaffsSession = 0;
+ lc.scarfStudiesSession = 0;
+ lc.adaptiveHelmsSession = 0;
+ lc.adaptiveChestsSession = 0;
+ lc.adaptiveLegsSession = 0;
+ lc.adaptiveBootsSession = 0;
+ lc.adaptiveSwordsSession = 0;
+ lc.spiritWingsSession = 0;
+ lc.spiritBonesSession = 0;
+ lc.spiritBootsSession = 0;
+ lc.spiritSwordsSession = 0;
+ lc.epicSpiritPetsSession = 0;
+ cf.deleteCategory("catacombs");
+ cf.reloadConfig();
+ }
}