aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/MoveCommand.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-11-02 16:44:31 -0500
committerGitHub <noreply@github.com>2020-11-02 16:44:31 -0500
commit292f5dde43c3e00b78e1d4e772ae336340b0a834 (patch)
tree7c3810178429cbca5ec62fd05183394e99b4bf5d /src/main/java/me/Danker/commands/MoveCommand.java
parent5c5ffdbd4379d4c5002cd42c297f90e631566006 (diff)
parentdfe29936c3bf3c7189a9a4d73d4d1ec33122f7ea (diff)
downloadSkyblockMod-292f5dde43c3e00b78e1d4e772ae336340b0a834.tar.gz
SkyblockMod-292f5dde43c3e00b78e1d4e772ae336340b0a834.tar.bz2
SkyblockMod-292f5dde43c3e00b78e1d4e772ae336340b0a834.zip
1.8.1v1.8.1
Merge pull request #27 from bowser0000/development
Diffstat (limited to 'src/main/java/me/Danker/commands/MoveCommand.java')
-rw-r--r--src/main/java/me/Danker/commands/MoveCommand.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/commands/MoveCommand.java b/src/main/java/me/Danker/commands/MoveCommand.java
index 7fb9acd..8b68e7e 100644
--- a/src/main/java/me/Danker/commands/MoveCommand.java
+++ b/src/main/java/me/Danker/commands/MoveCommand.java
@@ -17,6 +17,7 @@ public class MoveCommand extends CommandBase {
public static int[] displayXY = {0, 0};
public static int[] dungeonTimerXY = {0, 0};
public static int[] skill50XY = {0, 0};
+ public static int[] lividHpXY = {0, 0};
@Override
public String getCommandName() {
@@ -25,7 +26,7 @@ public class MoveCommand extends CommandBase {
@Override
public String getCommandUsage(ICommandSender arg0) {
- return "/" + getCommandName() + " <coords/display/dungeontimer/skill50> <x> <y>";
+ return "/" + getCommandName() + " <coords/display/dungeontimer/skill50/lividhp> <x> <y>";
}
@Override
@@ -36,7 +37,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");
+ return getListOfStringsMatchingLastWord(args, "coords", "display", "dungeontimer", "skill50", "lividhp");
}
return null;
}
@@ -75,6 +76,12 @@ public class MoveCommand extends CommandBase {
cf.writeIntConfig("locations", "skill50X", skill50XY[0]);
cf.writeIntConfig("locations", "skill50Y", skill50XY[1]);
player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Skill 50 display has been moved to " + EnumChatFormatting.DARK_GREEN + arg1[1] + ", " + arg1[2]));
+ } else if (arg1[0].equalsIgnoreCase("lividhp")) {
+ lividHpXY[0] = Integer.parseInt(arg1[1]);
+ lividHpXY[1] = Integer.parseInt(arg1[2]);
+ cf.writeIntConfig("locations", "lividHpX", lividHpXY[0]);
+ cf.writeIntConfig("locations", "lividHpY", lividHpXY[1]);
+ player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Livid HP has been moved to " + EnumChatFormatting.DARK_GREEN + arg1[1] + ", " + arg1[2]));
} else {
player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: " + getCommandUsage(arg0)));
}