aboutsummaryrefslogtreecommitdiff
path: root/me/Danker/commands/GetkeyCommand.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-07-13 17:42:57 -0400
committerbowser0000 <bowser0000@gmail.com>2020-07-13 17:42:57 -0400
commit8ce07f5b4b4c7d8cef95dd613885e5219ce6a6a2 (patch)
tree4ae7cd5ff26139a3fb0f390cbe359fa210337f7b /me/Danker/commands/GetkeyCommand.java
parentec0334bfb60226e5bd0fb987babbe16384bd5ae0 (diff)
downloadSkyblockMod-8ce07f5b4b4c7d8cef95dd613885e5219ce6a6a2.tar.gz
SkyblockMod-8ce07f5b4b4c7d8cef95dd613885e5219ce6a6a2.tar.bz2
SkyblockMod-8ce07f5b4b4c7d8cef95dd613885e5219ce6a6a2.zip
/move command, colours and slayer fixv1.4.1
Added /move command to move text displays. Add colour to messages and error messages in chat. Fixed slayer drops not being tracked.
Diffstat (limited to 'me/Danker/commands/GetkeyCommand.java')
-rw-r--r--me/Danker/commands/GetkeyCommand.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/me/Danker/commands/GetkeyCommand.java b/me/Danker/commands/GetkeyCommand.java
index e8b29e6..80354fe 100644
--- a/me/Danker/commands/GetkeyCommand.java
+++ b/me/Danker/commands/GetkeyCommand.java
@@ -7,6 +7,7 @@ import net.minecraft.command.ICommand;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
public class GetkeyCommand extends CommandBase implements ICommand {
@@ -31,9 +32,9 @@ public class GetkeyCommand extends CommandBase implements ICommand {
final ConfigHandler cf = new ConfigHandler();
if (cf.getString("api", "APIKey").equals("")) {
- player.addChatMessage(new ChatComponentText("API key not set. Set your API key using /setkey."));
+ player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "API key not set. Set your API key using /setkey."));
} else {
- player.addChatMessage(new ChatComponentText("Your set API key is " + cf.getString("api", "APIKey")));
+ player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Your set API key is " + EnumChatFormatting.DARK_GREEN + cf.getString("api", "APIKey")));
}
}