Color string when invalid color is used
This commit is contained in:
@@ -150,8 +150,8 @@ public class AddCoordinateCommandHandler implements CoordinatesCommandHandler {
|
||||
enteredColor.setColor(ChatColor.AQUA);
|
||||
finalMessage.addExtra(enteredColor);
|
||||
|
||||
TextComponent endOfMessage = new TextComponent(" is not a valid color!");
|
||||
colorMessage.setColor(ChatColor.RED);
|
||||
TextComponent endOfMessage = new TextComponent(" is not a valid color! Please use a regular minecraft color");
|
||||
endOfMessage.setColor(ChatColor.RED);
|
||||
finalMessage.addExtra(endOfMessage);
|
||||
sender.spigot().sendMessage(finalMessage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user