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();
|
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) {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user