aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/ScaleCommand.java
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-11 23:31:02 -0500
committerGitHub <noreply@github.com>2020-12-11 23:31:02 -0500
commitefa27de89b1cdaf738446837160deebb81c70331 (patch)
tree28f58dd4128f088f0b9b748dbdddf519b51ef5b3 /src/main/java/me/Danker/commands/ScaleCommand.java
parent13908c49c3743c22dcfb465215bcc7425b711598 (diff)
parent47910bc70961bd39d43cfdcbee103949559459c1 (diff)
downloadSkyblockMod-efa27de89b1cdaf738446837160deebb81c70331.tar.gz
SkyblockMod-efa27de89b1cdaf738446837160deebb81c70331.tar.bz2
SkyblockMod-efa27de89b1cdaf738446837160deebb81c70331.zip
Merge pull request #2 from bowser0000/development
Merge commits from development
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)));
}