aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/MoveCommand.java
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-11 23:31:02 -0500
committerGitHub <noreply@github.com>2020-12-11 23:31:02 -0500
commitefa27de89b1cdaf738446837160deebb81c70331 (patch)
tree28f58dd4128f088f0b9b748dbdddf519b51ef5b3 /src/main/java/me/Danker/commands/MoveCommand.java
parent13908c49c3743c22dcfb465215bcc7425b711598 (diff)
parent47910bc70961bd39d43cfdcbee103949559459c1 (diff)
downloadSkyblockMod-efa27de89b1cdaf738446837160deebb81c70331.tar.gz
SkyblockMod-efa27de89b1cdaf738446837160deebb81c70331.tar.bz2
SkyblockMod-efa27de89b1cdaf738446837160deebb81c70331.zip
Merge pull request #2 from bowser0000/development
Merge commits from development
Diffstat (limited to 'src/main/java/me/Danker/commands/MoveCommand.java')
-rw-r--r--src/main/java/me/Danker/commands/MoveCommand.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/commands/MoveCommand.java b/src/main/java/me/Danker/commands/MoveCommand.java
index de5d98f..e9bfe61 100644
--- a/src/main/java/me/Danker/commands/MoveCommand.java
+++ b/src/main/java/me/Danker/commands/MoveCommand.java
@@ -20,6 +20,7 @@ public class MoveCommand extends CommandBase {
public static int[] lividHpXY = {0, 0};
public static int[] cakeTimerXY = {0, 0};
public static int[] skillTrackerXY = {0, 0};
+ public static int[] waterAnswerXY = {0, 0};
@Override
public String getCommandName() {
@@ -28,7 +29,7 @@ public class MoveCommand extends CommandBase {
@Override
public String getCommandUsage(ICommandSender arg0) {
- return "/" + getCommandName() + " <coords/display/dungeontimer/skill50/lividhp/caketimer/skilltracker> <x> <y>";
+ return "/" + getCommandName() + " <coords/display/dungeontimer/skill50/lividhp/caketimer/skilltracker/wateranswer> <x> <y>";
}
@Override
@@ -39,7 +40,7 @@ public class MoveCommand extends CommandBase {
@Override
public List<String> addTabCompletionOptions(ICommandSender sender, String[] args, BlockPos pos) {
if (args.length == 1) {
- return getListOfStringsMatchingLastWord(args, "coords", "display", "dungeontimer", "skill50", "lividhp", "caketimer", "skilltracker");
+ return getListOfStringsMatchingLastWord(args, "coords", "display", "dungeontimer", "skill50", "lividhp", "caketimer", "skilltracker", "wateranswer");
}
return null;
}
@@ -103,6 +104,13 @@ public class MoveCommand extends CommandBase {
ConfigHandler.writeIntConfig("locations", "skillTrackerY", skillTrackerXY[1]);
player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Skill tracker has been moved to " + DankersSkyblockMod.SECONDARY_COLOUR + arg1[1] + ", " + arg1[2]));
break;
+ case "wateranswer":
+ waterAnswerXY[0] = Integer.parseInt(arg1[1]);
+ waterAnswerXY[1] = Integer.parseInt(arg1[2]);
+ ConfigHandler.writeIntConfig("locations", "waterAnswerX", waterAnswerXY[0]);
+ ConfigHandler.writeIntConfig("locations", "waterAnswerY", waterAnswerXY[1]);
+ player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Water solver answer has been moved to " + DankersSkyblockMod.SECONDARY_COLOUR + arg1[1] + ", " + arg1[2]));
+ break;
default:
player.addChatMessage(new ChatComponentText(DankersSkyblockMod.ERROR_COLOUR + "Usage: " + getCommandUsage(arg0)));
}