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(); Class<?> declaring = method.getDeclaringClass();
if (declaring == LivingWatcher.class) { if (declaring == LivingWatcher.class) {
methodColor = ChatColor.AQUA; methodColor = ChatColor.AQUA;
} else if (!(declaring.isAssignableFrom(FlagWatcher.class)) || declaring == FlagWatcher.class) { } else if (!(FlagWatcher.class.isAssignableFrom(declaring)) || declaring == FlagWatcher.class) {
methodColor = ChatColor.GRAY; methodColor = ChatColor.GRAY;
} }
String str = method.getName() + ChatColor.DARK_RED + "(" + ChatColor.GREEN + valueType String str = method.getName() + ChatColor.DARK_RED + "(" + ChatColor.GREEN + valueType