Source is no longer required to get an argument result

This commit is contained in:
Nathan Adams
2017-07-25 13:19:36 +02:00
parent ce5eb700b8
commit a7674e984d
7 changed files with 25 additions and 26 deletions
@@ -39,7 +39,7 @@ public class CommandContext<S> {
throw new IllegalArgumentException("No such argument '" + name + "' exists on this command");
}
final Object result = argument.getResult(source);
final Object result = argument.getResult();
if (Primitives.wrap(clazz).isAssignableFrom(result.getClass())) {
return (V) result;
} else {
@@ -13,7 +13,7 @@ public class ParsedArgument<S, T> {
return raw;
}
public T getResult(S source) {
public T getResult() {
return result;
}