Source is no longer required to get an argument result
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user