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

@ -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) {