Don't display deprecated methods for disguise help.

This commit is contained in:
Andrew 2013-11-18 04:29:38 +13:00
parent 04df1cd162
commit 370e72d9bc
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,8 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand {
Class watcher = type.getWatcherClass(); Class watcher = type.getWatcherClass();
try { try {
for (Method method : watcher.getMethods()) { 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]; Class c = method.getParameterTypes()[0];
String valueType = null; String valueType = null;
if (c == String.class) { if (c == String.class) {

View File

@ -18,7 +18,6 @@ public class UndisguiseEvent extends Event implements Cancellable {
private Disguise disguise; private Disguise disguise;
private Entity disguised; private Entity disguised;
private boolean isCancelled; private boolean isCancelled;
public UndisguiseEvent(Entity entity, Disguise disguise) { public UndisguiseEvent(Entity entity, Disguise disguise) {