aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/ScaleCommand.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-09-06 22:16:11 -0400
committerbowser0000 <bowser0000@gmail.com>2021-09-06 22:16:11 -0400
commit0707ac473037146819c5a43c808b6ee41f014a63 (patch)
tree52ba2e13880c3e67e03b219a03b967d3f5c913df /src/main/java/me/Danker/commands/ScaleCommand.java
parent6bc2a39f06664f55e8fe2eae06ddecb38173c6b5 (diff)
downloadSkyblockMod-0707ac473037146819c5a43c808b6ee41f014a63.tar.gz
SkyblockMod-0707ac473037146819c5a43c808b6ee41f014a63.tar.bz2
SkyblockMod-0707ac473037146819c5a43c808b6ee41f014a63.zip
Add ability cooldown display
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 def0e57..b38d57e 100644
--- a/src/main/java/me/Danker/commands/ScaleCommand.java
+++ b/src/main/java/me/Danker/commands/ScaleCommand.java
@@ -25,6 +25,7 @@ public class ScaleCommand extends CommandBase {
public static double golemTimerScale;
public static double teammatesInRadiusScale;
public static double giantHPScale;
+ public static double abilityCooldownsScale;
@Override
public String getCommandName() {
@@ -33,7 +34,8 @@ public class ScaleCommand extends CommandBase {
@Override
public String getCommandUsage(ICommandSender arg0) {
- return "/" + getCommandName() + " <coords/display/dungeontimer/skill50/lividhp/caketimer/skilltracker/wateranswer/bonzotimer/golemtimer/teammatesinradius/gianthp> <size (0.1 - 10)>";
+ return "/" + getCommandName() + " <coords/display/dungeontimer/skill50/lividhp/caketimer/skilltracker/wateranswer/" +
+ "bonzotimer/golemtimer/teammatesinradius/gianthp/abilitycooldown> <size (0.1 - 10)>";
}
public static String usage(ICommandSender arg0) {
@@ -50,7 +52,7 @@ public class ScaleCommand extends CommandBase {
if (args.length == 1) {
return getListOfStringsMatchingLastWord(args, "coords", "display", "dungeontimer", "skill50", "lividhp", "caketimer",
"skilltracker", "wateranswer", "bonzotimer", "golemtimer", "teammatesinradius",
- "gianthp");
+ "gianthp", "abilitycooldowns");
}
return null;
}
@@ -131,6 +133,11 @@ public class ScaleCommand extends CommandBase {
ConfigHandler.writeDoubleConfig("scales", "giantHPScale", giantHPScale);
player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Giant hp has been scaled to " + DankersSkyblockMod.SECONDARY_COLOUR + giantHPScale + "x"));
break;
+ case "abilitycooldowns":
+ abilityCooldownsScale = scaleAmount;
+ ConfigHandler.writeDoubleConfig("scales", "abilityCooldownsScale", abilityCooldownsScale);
+ player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Ability cooldowns has been scaled to " + DankersSkyblockMod.SECONDARY_COLOUR + abilityCooldownsScale + "x"));
+ break;
default:
player.addChatMessage(new ChatComponentText(DankersSkyblockMod.ERROR_COLOUR + "Usage: " + getCommandUsage(arg0)));
}