aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-09-14 18:35:13 -0400
committerbowser0000 <bowser0000@gmail.com>2020-09-14 18:35:13 -0400
commit3198b59936c0221b258fa6e97edaf33eed336ee7 (patch)
tree9bc087d00f38d453f7d910244cc18cbfcf61be43 /src/main
parent05a53bb80df79e399b5b5a573311059f9f467ff6 (diff)
downloadSkyblockMod-3198b59936c0221b258fa6e97edaf33eed336ee7.tar.gz
SkyblockMod-3198b59936c0221b258fa6e97edaf33eed336ee7.tar.bz2
SkyblockMod-3198b59936c0221b258fa6e97edaf33eed336ee7.zip
Add importing shark kills
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/me/Danker/commands/ImportFishingCommand.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/commands/ImportFishingCommand.java b/src/main/java/me/Danker/commands/ImportFishingCommand.java
index bbbcb9f..dc9bd9b 100644
--- a/src/main/java/me/Danker/commands/ImportFishingCommand.java
+++ b/src/main/java/me/Danker/commands/ImportFishingCommand.java
@@ -202,6 +202,30 @@ public class ImportFishingCommand extends CommandBase {
}
lc.seaCreatures += lc.yetis;
+ lc.nurseSharks = 0;
+ if (statsObject.has("kills_nurse_shark")) {
+ lc.nurseSharks = statsObject.get("kills_nurse_shark").getAsInt();
+ }
+ lc.seaCreatures += lc.nurseSharks;
+
+ lc.blueSharks = 0;
+ if (statsObject.has("kills_nurse_shark")) {
+ lc.blueSharks = statsObject.get("kills_blue_shark").getAsInt();
+ }
+ lc.seaCreatures += lc.blueSharks;
+
+ lc.tigerSharks = 0;
+ if (statsObject.has("kills_nurse_shark")) {
+ lc.tigerSharks = statsObject.get("kills_tiger_shark").getAsInt();
+ }
+ lc.seaCreatures += lc.tigerSharks;
+
+ lc.greatWhiteSharks = 0;
+ if (statsObject.has("kills_nurse_shark")) {
+ lc.greatWhiteSharks = statsObject.get("kills_great_white_shark").getAsInt();
+ }
+ lc.seaCreatures += lc.greatWhiteSharks;
+
System.out.println("Writing to config...");
cf.writeIntConfig("fishing", "goodCatch", lc.goodCatches);
cf.writeIntConfig("fishing", "greatCatch", lc.greatCatches);
@@ -225,6 +249,10 @@ public class ImportFishingCommand extends CommandBase {
cf.writeIntConfig("fishing", "snowman", lc.frostyTheSnowmans);
cf.writeIntConfig("fishing", "grinch", lc.grinches);
cf.writeIntConfig("fishing", "yeti", lc.yetis);
+ cf.writeIntConfig("fishing", "nurseShark", lc.nurseSharks);
+ cf.writeIntConfig("fishing", "blueShark", lc.blueSharks);
+ cf.writeIntConfig("fishing", "tigerShark", lc.tigerSharks);
+ cf.writeIntConfig("fishing", "greatWhiteShark", lc.greatWhiteSharks);
player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Fishing stats imported."));
}).start();