Don't display deprecated methods for disguise help.
This commit is contained in:
parent
04df1cd162
commit
370e72d9bc
@ -81,7 +81,8 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand {
|
||||
Class watcher = type.getWatcherClass();
|
||||
try {
|
||||
for (Method method : watcher.getMethods()) {
|
||||
if (!method.getName().startsWith("get") && method.getParameterTypes().length == 1) {
|
||||
if (!method.getName().startsWith("get") && method.getParameterTypes().length == 1
|
||||
&& method.getAnnotation(Deprecated.class) == null) {
|
||||
Class c = method.getParameterTypes()[0];
|
||||
String valueType = null;
|
||||
if (c == String.class) {
|
||||
|
@ -18,7 +18,6 @@ public class UndisguiseEvent extends Event implements Cancellable {
|
||||
|
||||
private Disguise disguise;
|
||||
private Entity disguised;
|
||||
|
||||
private boolean isCancelled;
|
||||
|
||||
public UndisguiseEvent(Entity entity, Disguise disguise) {
|
||||
|
Loading…
Reference in New Issue
Block a user