aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/BlockSlayerCommand.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-11-09 14:50:39 -0500
committerbowser0000 <bowser0000@gmail.com>2020-11-09 14:50:39 -0500
commit511b95de7dcb83e047dce2adadeff8c18804c1b6 (patch)
tree9e83ee2e91842b6c19a5bb05c0a9d7acac89e3ae /src/main/java/me/Danker/commands/BlockSlayerCommand.java
parent432ee590f73a08b184f0d0ec65b8549aa2f3e877 (diff)
downloadSkyblockMod-511b95de7dcb83e047dce2adadeff8c18804c1b6.tar.gz
SkyblockMod-511b95de7dcb83e047dce2adadeff8c18804c1b6.tar.bz2
SkyblockMod-511b95de7dcb83e047dce2adadeff8c18804c1b6.zip
Add config values for colours and many bug fixes
Fix spooky fishing config values Add spooky fishing to /importfishing Add boolean to config to truely turn off chat Maddox Remove bold red name from three man puzzle answer Change spooky fishing to fishing spooky
Diffstat (limited to 'src/main/java/me/Danker/commands/BlockSlayerCommand.java')
-rw-r--r--src/main/java/me/Danker/commands/BlockSlayerCommand.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/me/Danker/commands/BlockSlayerCommand.java b/src/main/java/me/Danker/commands/BlockSlayerCommand.java
index 83a0358..bc6a32b 100644
--- a/src/main/java/me/Danker/commands/BlockSlayerCommand.java
+++ b/src/main/java/me/Danker/commands/BlockSlayerCommand.java
@@ -2,6 +2,7 @@ package me.Danker.commands;
import java.util.List;
+import me.Danker.TheMod;
import me.Danker.handlers.ConfigHandler;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
@@ -47,7 +48,7 @@ public class BlockSlayerCommand extends CommandBase {
final ConfigHandler cf = new ConfigHandler();
if (arg1.length == 0 || (arg1.length == 1 && !arg1[0].equalsIgnoreCase("off"))) {
- player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: " + getCommandUsage(arg0)));
+ player.addChatMessage(new ChatComponentText(TheMod.ERROR_COLOUR + "Usage: " + getCommandUsage(arg0)));
return;
}
@@ -61,10 +62,10 @@ public class BlockSlayerCommand extends CommandBase {
onlySlayerName = "";
onlySlayerNumber = "";
cf.writeStringConfig("toggles", "BlockSlayer", "");
- player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Slayer blocking turned off."));
+ player.addChatMessage(new ChatComponentText(TheMod.MAIN_COLOUR + "Slayer blocking turned off."));
return;
} else {
- player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: " + getCommandUsage(arg0)));
+ player.addChatMessage(new ChatComponentText(TheMod.ERROR_COLOUR + "Usage: " + getCommandUsage(arg0)));
return;
}
@@ -86,12 +87,12 @@ public class BlockSlayerCommand extends CommandBase {
default:
onlySlayerName = "";
onlySlayerNumber = "";
- player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: " + getCommandUsage(arg0)));
+ player.addChatMessage(new ChatComponentText(TheMod.ERROR_COLOUR + "Usage: " + getCommandUsage(arg0)));
return;
}
cf.writeStringConfig("toggles", "BlockSlayer", onlySlayerName + " " + onlySlayerNumber);
- player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Slayer blocking set to " + EnumChatFormatting.DARK_GREEN + onlySlayerName + " " + onlySlayerNumber));
+ player.addChatMessage(new ChatComponentText(TheMod.MAIN_COLOUR + "Slayer blocking set to " + TheMod.SECONDARY_COLOUR + onlySlayerName + " " + onlySlayerNumber));
}
}