aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/ScaleCommand.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-12-07 15:21:25 -0500
committerbowser0000 <bowser0000@gmail.com>2020-12-07 15:21:25 -0500
commitc92a8a13bd83a6d47f399b6845b6ac7885e6ab54 (patch)
treec0551255a10c58e0dcce2708b0ddf83b8b3511ba /src/main/java/me/Danker/commands/ScaleCommand.java
parent15255eb3e2379e950b39011bacecbdf6eb4441a7 (diff)
downloadSkyblockMod-c92a8a13bd83a6d47f399b6845b6ac7885e6ab54.tar.gz
SkyblockMod-c92a8a13bd83a6d47f399b6845b6ac7885e6ab54.tar.bz2
SkyblockMod-c92a8a13bd83a6d47f399b6845b6ac7885e6ab54.zip
Change water puzzle solver to display from chat message
Diffstat (limited to 'src/main/java/me/Danker/commands/ScaleCommand.java')
-rw-r--r--src/main/java/me/Danker/commands/ScaleCommand.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/commands/ScaleCommand.java b/src/main/java/me/Danker/commands/ScaleCommand.java
index c194fcb..85d0d5c 100644
--- a/src/main/java/me/Danker/commands/ScaleCommand.java
+++ b/src/main/java/me/Danker/commands/ScaleCommand.java
@@ -8,6 +8,7 @@ import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.BlockPos;
import net.minecraft.util.ChatComponentText;
+import sun.security.krb5.Config;
import java.util.List;
@@ -20,6 +21,7 @@ public class ScaleCommand extends CommandBase {
public static double lividHpScale;
public static double cakeTimerScale;
public static double skillTrackerScale;
+ public static double waterAnswerScale;
@Override
public String getCommandName() {
@@ -28,7 +30,7 @@ public class ScaleCommand extends CommandBase {
@Override
public String getCommandUsage(ICommandSender arg0) {
- return "/" + getCommandName() + " <coords/display/dungeontimer/skill50/lividhp/caketimer/skilltracker> <size (0.1 - 10)>";
+ return "/" + getCommandName() + " <coords/display/dungeontimer/skill50/lividhp/caketimer/skilltracker/wateranswer> <size (0.1 - 10)>";
}
@Override
@@ -39,7 +41,7 @@ public class ScaleCommand extends CommandBase {
@Override
public List<String> addTabCompletionOptions(ICommandSender sender, String[] args, BlockPos pos) {
if (args.length == 1) {
- return getListOfStringsMatchingLastWord(args, "coords", "display", "dungeontimer", "skill50", "lividhp", "caketimer", "skilltracker");
+ return getListOfStringsMatchingLastWord(args, "coords", "display", "dungeontimer", "skill50", "lividhp", "caketimer", "skilltracker", "wateranswer");
}
return null;
}
@@ -95,6 +97,11 @@ public class ScaleCommand extends CommandBase {
ConfigHandler.writeDoubleConfig("scales", "skillTrackerScale", skillTrackerScale);
player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Skill tracker has been scaled to " + DankersSkyblockMod.SECONDARY_COLOUR + skillTrackerScale + "x"));
break;
+ case "wateranswer":
+ waterAnswerScale = scaleAmount;
+ ConfigHandler.writeDoubleConfig("scales", "waterAnswerScale", waterAnswerScale);
+ player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Water solver answer has been scaled to " + DankersSkyblockMod.SECONDARY_COLOUR + waterAnswerScale + "x"));
+ break;
default:
player.addChatMessage(new ChatComponentText(DankersSkyblockMod.ERROR_COLOUR + "Usage: " + getCommandUsage(arg0)));
}