From 2905d77206759ab17298fe7f3b91d0ee3853bb67 Mon Sep 17 00:00:00 2001 From: Matsv Date: Thu, 31 Mar 2016 20:53:03 +0200 Subject: [PATCH] Reformatting moved color to the top ;( --- .../ViaVersion/commands/ViaCommandHandler.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/us/myles/ViaVersion/commands/ViaCommandHandler.java b/src/main/java/us/myles/ViaVersion/commands/ViaCommandHandler.java index 478bf1424..46880b3fe 100644 --- a/src/main/java/us/myles/ViaVersion/commands/ViaCommandHandler.java +++ b/src/main/java/us/myles/ViaVersion/commands/ViaCommandHandler.java @@ -26,14 +26,6 @@ public class ViaCommandHandler implements ViaVersionCommand, CommandExecutor, Ta } } - public static String color(String string) { - try { - string = ChatColor.translateAlternateColorCodes('&', string); //Dont replace all & with $ like we did before. - } catch (Exception ignored) { - } - return string; - } - @Override public void registerSubCommand(@NonNull ViaSubCommand command) throws Exception { Validate.isTrue(command.name().matches("^[a-z0-9_-]{3,15}$"), command.name() + " is not a valid subcommand name"); @@ -144,4 +136,12 @@ public class ViaCommandHandler implements ViaVersionCommand, CommandExecutor, Ta registerSubCommand(new AutoTeamSubCmd()); registerSubCommand(new HelpSubCmd()); } + + public static String color(String string) { + try { + string = ChatColor.translateAlternateColorCodes('&', string); //Dont replace all & with $ like we did before. + } catch (Exception ignored) { + } + return string; + } }