If the method to use isn't part of a flagwatcher class. Make it gray as its a base

This commit is contained in:
libraryaddict 2014-09-13 21:18:18 +12:00
parent 5115af60a0
commit ead0fd724c

View File

@ -212,7 +212,7 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand {
Class<?> declaring = method.getDeclaringClass();
if (declaring == LivingWatcher.class) {
methodColor = ChatColor.AQUA;
} else if (declaring == FlagWatcher.class) {
} else if (!(declaring.isAssignableFrom(FlagWatcher.class)) || declaring == FlagWatcher.class) {
methodColor = ChatColor.GRAY;
}
String str = method.getName() + ChatColor.DARK_RED + "(" + ChatColor.GREEN + valueType