From 0860a1246af2708f83536f7474b56ff0abd43d91 Mon Sep 17 00:00:00 2001 From: ILikePlayingGames <22475143+ILikePlayingGames@users.noreply.github.com> Date: Fri, 24 Apr 2020 22:21:07 -0400 Subject: [PATCH] Change command help messages to use formatting codes directly instead of a conversion --- .../commands/SkyblockAddonsCommand.java | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/main/java/codes/biscuit/skyblockaddons/commands/SkyblockAddonsCommand.java b/src/main/java/codes/biscuit/skyblockaddons/commands/SkyblockAddonsCommand.java index ae6a96e81d..786389eca5 100644 --- a/src/main/java/codes/biscuit/skyblockaddons/commands/SkyblockAddonsCommand.java +++ b/src/main/java/codes/biscuit/skyblockaddons/commands/SkyblockAddonsCommand.java @@ -20,6 +20,7 @@ public class SkyblockAddonsCommand extends CommandBase { private SkyblockAddons main; private Logger logger; + public SkyblockAddonsCommand(SkyblockAddons main) { this.main = main; logger = main.getLogger(); @@ -52,26 +53,26 @@ public List getCommandAliases() * Gets the usage string for the command. */ public String getCommandUsage(ICommandSender sender) { return - Utils.color("&7&m------------&7[&b&l SkyblockAddons &7]&7&m------------") + "\n" + - Utils.color("&b● /sba &7- Open the main menu") + "\n" + - Utils.color("&b● /sba edit &7- Edit GUI locations") + "\n" + - Utils.color("&b● /sba folder &7- Open your mods folder") + "\n" + - Utils.color("&7&m------------------------------------------"); + "§7§m------------§7[§b§l SkyblockAddons §7]§7§m------------" + "\n" + + "§b● /sba §7- Open the main menu" + "\n" + + "§b● /sba edit §7- Edit GUI locations" + "\n" + + "§b● /sba folder §7- Open your mods folder" + "\n" + + "§7§m------------------------------------------"; } /** * Gets the usage string for the developer mode sub-command. */ public String getDevCommandUsage() { return - Utils.color("&7&m----&7[&b&l SkyblockAddons Developer Mode &7]&7&m----") + "\n" + - Utils.color("&b● /sba dev &7- Toggle developer mode") + "\n" + - Utils.color("") + "\n" + - Utils.color("&7Options (&b/sba dev [option])&7:") + "\n" + - Utils.color("&b● copySidebar [keepControlCodes] &7- Copy the") + "\n" + - Utils.color(" &7scoreboard sidebar. \"keepControlCodes\"") + "\n" + - Utils.color(" &7keeps the formatting codes when copying.") + "\n" + - Utils.color("&b● brand &7- Show the server brand") + "\n" + - Utils.color("&7&m-------------------------------------------"); + "§7§m----§7[§b§l SkyblockAddons Developer Mode §7]§7§m----" + "\n" + + "§b● /sba dev §7- Toggle developer mode" + "\n" + + "\n" + + "§7Options (§b/sba dev [option])§7:" + "\n" + + "§b● copySidebar [keepControlCodes] §7- Copy the" + "\n" + + " §7scoreboard sidebar. \"keepControlCodes\"" + "\n" + + " §7keeps the formatting codes when copying." + "\n" + + "§b● brand §7- Show the server brand" + "\n" + + "§7§m-------------------------------------------"; } public List addTabCompletionOptions(ICommandSender sender, String[] args, BlockPos pos) {