From 6d9037592adf85061d0feb3a3981d8110244d128 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sun, 25 Sep 2016 22:26:16 +0200 Subject: [PATCH] Partially added #49 --- .../chat/commands/ucmds/HelpCommand.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/HelpCommand.java b/src/main/java/buttondevteam/chat/commands/ucmds/HelpCommand.java index dd81b8f..e36f1d9 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/HelpCommand.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/HelpCommand.java @@ -20,7 +20,7 @@ public final class HelpCommand extends UCommandBase { sender.sendMessage(new String[] { "§6---- TBMC Help ----", "Do /u help for more info", "Do /u help [subcommands] for more info about a command", "Topics:", "commands: See all the commands from this plugin", - "chat: Shows some info about custom chat features" }); + "chat: Shows some info about custom chat features", "colors: Shows Minecraft color codes" }); return true; } if (args[0].equalsIgnoreCase("chat")) @@ -36,6 +36,19 @@ public final class HelpCommand extends UCommandBase { if (!cmd.GetCommandPath().contains("/")) text.add("/" + cmd.GetCommandPath()); sender.sendMessage(text.toArray(new String[text.size()])); + } else if (args[0].equalsIgnoreCase("colors")) { + sender.sendMessage(new String[] { "§6---- Chat colors ----", // + "Tellraw name - Code | Tellraw name - Code", // + "§0black - &0 | §1dark_blue - &1", // + "§2dark_green - &2 | §3dark_aqua - &3", // + "§4dark_red - &4 | §5dark_purple - &5", // + "§6gold - &6 | §7gray - &7", // + "§8dark_gray - &8 | §9blue - &9", // + "§agreen - &a | §baqua - &b", // + "§cred - &c | §dlight_purple - &d", // + "§eyellow - &e | §fwhite - &f", // + "§rreset - &r", //TODO: Add format codes + "" }); // } else { String path = args[0]; for (int i = 1; i < args.length; i++) @@ -48,6 +61,7 @@ public final class HelpCommand extends UCommandBase { sender.sendMessage(cmd.GetHelpText(args[0])); } return true; + } @Override