If the method to use isn't part of a flagwatcher class. Make it gray as its a base
This commit is contained in:
parent
5115af60a0
commit
ead0fd724c
@ -212,7 +212,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 == FlagWatcher.class) {
|
} else if (!(declaring.isAssignableFrom(FlagWatcher.class)) || 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