diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-09-24 23:14:56 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-09-24 23:14:56 -0400 |
commit | 050a1b2d8fbea8567de76d6515908470054d81c1 (patch) | |
tree | 17cc9ae40b32812031b13577aaa9c00d201a51ee /src/main/java/me/Danker/commands/ScaleCommand.java | |
parent | ba5deced2daac3e5be5651121be139cd0a9fb6b6 (diff) | |
download | SkyblockMod-050a1b2d8fbea8567de76d6515908470054d81c1.tar.gz SkyblockMod-050a1b2d8fbea8567de76d6515908470054d81c1.tar.bz2 SkyblockMod-050a1b2d8fbea8567de76d6515908470054d81c1.zip |
Add option for displaying total skill xp instead of progress to next level
Diffstat (limited to 'src/main/java/me/Danker/commands/ScaleCommand.java')
-rw-r--r-- | src/main/java/me/Danker/commands/ScaleCommand.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/commands/ScaleCommand.java b/src/main/java/me/Danker/commands/ScaleCommand.java index cd53add..5f21b77 100644 --- a/src/main/java/me/Danker/commands/ScaleCommand.java +++ b/src/main/java/me/Danker/commands/ScaleCommand.java @@ -16,6 +16,7 @@ public class ScaleCommand extends CommandBase { public static double coordsScale; public static double displayScale; public static double dungeonTimerScale; + public static double skill50Scale; @Override public String getCommandName() { @@ -24,7 +25,7 @@ public class ScaleCommand extends CommandBase { @Override public String getCommandUsage(ICommandSender arg0) { - return "/" + getCommandName() + " <coords/display/dungeontimer> <size (0.1 - 10)>"; + return "/" + getCommandName() + " <coords/display/dungeontimer/skill50> <size (0.1 - 10)>"; } @Override @@ -35,7 +36,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"); + return getListOfStringsMatchingLastWord(args, "coords", "display", "dungeontimer", "skill50"); } return null; } @@ -67,6 +68,10 @@ public class ScaleCommand extends CommandBase { dungeonTimerScale = scaleAmount; ConfigHandler.writeDoubleConfig("scales", "dungeonTimerScale", dungeonTimerScale); player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Dungeon timer has been scaled to " + EnumChatFormatting.DARK_GREEN + dungeonTimerScale + "x")); + } else if (arg1[0].equalsIgnoreCase("skill50")) { + skill50Scale = scaleAmount; + ConfigHandler.writeDoubleConfig("scales", "skill50Scale", skill50Scale); + player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Skill 50 display has been scaled to " + EnumChatFormatting.DARK_GREEN + skill50Scale + "x")); } else { player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: " + getCommandUsage(arg0))); } |