0

improved message coloring

This commit is contained in:
NEMESIS13cz
2016-11-19 16:25:07 +01:00
parent 4e7049b213
commit 5358030f8d
3 changed files with 18 additions and 23 deletions

View File

@@ -92,12 +92,12 @@ public class CommandManager {
public static boolean errors = false;
/* Switches for color and formatting in the built-in help message and pagination text */
public static String helpDescriptionFormatting = "<EFBFBD>b";
public static String helpUsageFormatting = "<EFBFBD>6";
public static String helpPageHeaderFormatting = "<EFBFBD>a";
public static String helpInvalidPageFormatting = "<EFBFBD>c";
public static String noPermissionFormatting = "<EFBFBD>c";
public static String notAllowedFormatting = "<EFBFBD>c";
public static String helpDescriptionFormatting = "&b";
public static String helpUsageFormatting = "&6";
public static String helpPageHeaderFormatting = "&a";
public static String helpInvalidPageFormatting = "&c";
public static String noPermissionFormatting = "&c";
public static String notAllowedFormatting = "&c";
/**
* Registers a command from a String of source code
@@ -454,13 +454,6 @@ public class CommandManager {
return false;
}
/* typical escape sequences and such */
}else if (current == '&' && currentProp == Property.HELP) {
if (previous == '\\') {
buffer.append('&');
}else{
/* for color codes and formatting */
buffer.append('<27>');
}
}else if (current == 'n' && currentProp == Property.HELP) {
if (previous == '\\') {
buffer.append('\n');