aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/MoveCommand.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/MoveCommand.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/MoveCommand.java')
-rw-r--r--src/main/java/me/Danker/commands/MoveCommand.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/commands/MoveCommand.java b/src/main/java/me/Danker/commands/MoveCommand.java
index 33d1f78..b17794c 100644
--- a/src/main/java/me/Danker/commands/MoveCommand.java
+++ b/src/main/java/me/Danker/commands/MoveCommand.java
@@ -24,6 +24,7 @@ public class MoveCommand extends CommandBase {
public static int[] bonzoTimerXY = {0, 0};
public static int[] golemTimerXY = {0 ,0};
public static int[] teammatesInRadiusXY = {0, 0};
+ public static int[] giantHPXY = {0, 0};
@Override
public String getCommandName() {
@@ -32,7 +33,7 @@ public class MoveCommand extends CommandBase {
@Override
public String getCommandUsage(ICommandSender arg0) {
- return "/" + getCommandName() + " <coords/display/dungeontimer/skill50/lividhp/caketimer/skilltracker/wateranswer/bonzotimer/golemtimer/teammatesinradius> <x> <y>";
+ return "/" + getCommandName() + " <coords/display/dungeontimer/skill50/lividhp/caketimer/skilltracker/wateranswer/bonzotimer/golemtimer/teammatesinradius/gianthp> <x> <y>";
}
public static String usage(ICommandSender arg0) {
@@ -48,7 +49,8 @@ public class MoveCommand 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;
}
@@ -140,6 +142,13 @@ public class MoveCommand extends CommandBase {
ConfigHandler.writeIntConfig("locations", "teammatesInRadiusY", teammatesInRadiusXY[1]);
player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Teammates in radius has been moved to " + DankersSkyblockMod.SECONDARY_COLOUR + arg1[1] + ", " + arg1[2]));
break;
+ case "gianthp":
+ giantHPXY[0] = Integer.parseInt(arg1[1]);
+ giantHPXY[1] = Integer.parseInt(arg1[2]);
+ ConfigHandler.writeIntConfig("locations", "giantHPX", giantHPXY[0]);
+ ConfigHandler.writeIntConfig("locations", "giantHPY", giantHPXY[1]);
+ player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Giant HP has been moved to " + DankersSkyblockMod.SECONDARY_COLOUR + arg1[1] + ", " + arg1[2]));
+ break;
default:
player.addChatMessage(new ChatComponentText(DankersSkyblockMod.ERROR_COLOUR + "Usage: " + getCommandUsage(arg0)));
}