aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/ScaleCommand.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-12-23 01:35:10 -0500
committerbowser0000 <bowser0000@gmail.com>2021-12-23 01:35:10 -0500
commitaaba0391a06ac4546d7ec5ce684534c35d9cbc82 (patch)
tree9a067fc19577e66bc4362ab4770e6b7af088ddff /src/main/java/me/Danker/commands/ScaleCommand.java
parent457305a5c1894d776b7c30ecc0f4f0cd8edc1e86 (diff)
downloadSkyblockMod-aaba0391a06ac4546d7ec5ce684534c35d9cbc82.tar.gz
SkyblockMod-aaba0391a06ac4546d7ec5ce684534c35d9cbc82.tar.bz2
SkyblockMod-aaba0391a06ac4546d7ec5ce684534c35d9cbc82.zip
Add dungeon score display
Diffstat (limited to 'src/main/java/me/Danker/commands/ScaleCommand.java')
-rw-r--r--src/main/java/me/Danker/commands/ScaleCommand.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/commands/ScaleCommand.java b/src/main/java/me/Danker/commands/ScaleCommand.java
index b38d57e..9bb1f08 100644
--- a/src/main/java/me/Danker/commands/ScaleCommand.java
+++ b/src/main/java/me/Danker/commands/ScaleCommand.java
@@ -26,6 +26,7 @@ public class ScaleCommand extends CommandBase {
public static double teammatesInRadiusScale;
public static double giantHPScale;
public static double abilityCooldownsScale;
+ public static double dungeonScoreScale;
@Override
public String getCommandName() {
@@ -35,7 +36,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/gianthp/abilitycooldown> <size (0.1 - 10)>";
+ "bonzotimer/golemtimer/teammatesinradius/gianthp/abilitycooldown/dungeonscore> <size (0.1 - 10)>";
}
public static String usage(ICommandSender arg0) {
@@ -52,7 +53,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", "abilitycooldowns");
+ "gianthp", "abilitycooldowns", "dungeonscore");
}
return null;
}
@@ -138,6 +139,11 @@ public class ScaleCommand extends CommandBase {
ConfigHandler.writeDoubleConfig("scales", "abilityCooldownsScale", abilityCooldownsScale);
player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Ability cooldowns has been scaled to " + DankersSkyblockMod.SECONDARY_COLOUR + abilityCooldownsScale + "x"));
break;
+ case "dungeonscore":
+ dungeonScoreScale = scaleAmount;
+ ConfigHandler.writeDoubleConfig("scales", "dungeonScoreScale", dungeonScoreScale);
+ player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Dungeon score has been scaled to " + DankersSkyblockMod.SECONDARY_COLOUR + dungeonScoreScale + "x"));
+ break;
default:
player.addChatMessage(new ChatComponentText(DankersSkyblockMod.ERROR_COLOUR + "Usage: " + getCommandUsage(arg0)));
}