aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/ScaleCommand.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-04-29 01:06:57 -0400
committerbowser0000 <bowser0000@gmail.com>2021-04-29 01:06:57 -0400
commit01822bff56d23b98885227943bd1e042e4f9e946 (patch)
tree5931c2b8a3df8ca25a5747fdc273a06c6102fa48 /src/main/java/me/Danker/commands/ScaleCommand.java
parentb48dabaf8ab58773eb51a1c2077b880ee1f28675 (diff)
downloadSkyblockMod-01822bff56d23b98885227943bd1e042e4f9e946.tar.gz
SkyblockMod-01822bff56d23b98885227943bd1e042e4f9e946.tar.bz2
SkyblockMod-01822bff56d23b98885227943bd1e042e4f9e946.zip
Add giant hp display
Also make LocationButton easy to add
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 a95f1b1..def0e57 100644
--- a/src/main/java/me/Danker/commands/ScaleCommand.java
+++ b/src/main/java/me/Danker/commands/ScaleCommand.java
@@ -24,6 +24,7 @@ public class ScaleCommand extends CommandBase {
public static double bonzoTimerScale;
public static double golemTimerScale;
public static double teammatesInRadiusScale;
+ public static double giantHPScale;
@Override
public String getCommandName() {
@@ -32,7 +33,7 @@ public class ScaleCommand extends CommandBase {
@Override
public String getCommandUsage(ICommandSender arg0) {
- return "/" + getCommandName() + " <coords/display/dungeontimer/skill50/lividhp/caketimer/skilltracker/wateranswer/bonzotimer/golemtimer/teammatesinradius> <size (0.1 - 10)>";
+ return "/" + getCommandName() + " <coords/display/dungeontimer/skill50/lividhp/caketimer/skilltracker/wateranswer/bonzotimer/golemtimer/teammatesinradius/gianthp> <size (0.1 - 10)>";
}
public static String usage(ICommandSender arg0) {
@@ -48,7 +49,8 @@ public class ScaleCommand extends CommandBase {
public List<String> addTabCompletionOptions(ICommandSender sender, String[] args, BlockPos pos) {
if (args.length == 1) {
return getListOfStringsMatchingLastWord(args, "coords", "display", "dungeontimer", "skill50", "lividhp", "caketimer",
- "skilltracker", "wateranswer", "bonzotimer", "golemtimer", "teammatesinradius");
+ "skilltracker", "wateranswer", "bonzotimer", "golemtimer", "teammatesinradius",
+ "gianthp");
}
return null;
}
@@ -124,6 +126,11 @@ public class ScaleCommand extends CommandBase {
ConfigHandler.writeDoubleConfig("scales", "teammatesInRadiusScale", teammatesInRadiusScale);
player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Teammates in radius has been scaled to " + DankersSkyblockMod.SECONDARY_COLOUR + teammatesInRadiusScale + "x"));
break;
+ case "gianthp":
+ giantHPScale = scaleAmount;
+ ConfigHandler.writeDoubleConfig("scales", "giantHPScale", giantHPScale);
+ player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Giant hp has been scaled to " + DankersSkyblockMod.SECONDARY_COLOUR + giantHPScale + "x"));
+ break;
default:
player.addChatMessage(new ChatComponentText(DankersSkyblockMod.ERROR_COLOUR + "Usage: " + getCommandUsage(arg0)));
}