Fix coloring for disguisehelp declaring class
This commit is contained in:
parent
babe5554ab
commit
c21e1b00ff
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user