Fix coloring for disguisehelp declaring class

This commit is contained in:
libraryaddict 2014-09-15 01:27:27 +12:00
parent babe5554ab
commit c21e1b00ff

View File

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