Sort files and make 4 new options in the disguise class viewable with commands

This commit is contained in:
libraryaddict
2014-09-13 21:23:06 +12:00
parent ead0fd724c
commit 9be63e1cc8
3 changed files with 45 additions and 27 deletions

View File

@@ -157,7 +157,7 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand {
Class watcher = type.getWatcherClass();
int ignored = 0;
try {
for (Method method : watcher.getMethods()) {
for (Method method : this.getDisguiseWatcherMethods(watcher)) {
if (!method.getName().startsWith("get") && method.getParameterTypes().length == 1
&& method.getAnnotation(Deprecated.class) == null) {
if (args.length < 2 || !args[1].equalsIgnoreCase("show")) {