mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
Fix getContextValue resolving too many args
This commit is contained in:
@@ -101,7 +101,7 @@ public class CommandCompletionContext<I extends CommandIssuer> {
|
||||
}
|
||||
}
|
||||
//noinspection unchecked
|
||||
Map<String, Object> resolved = command.resolveContexts(issuer, args, args.size());
|
||||
Map<String, Object> resolved = command.resolveContexts(issuer, args, args.size() - 1);
|
||||
if (resolved == null || paramIdx > resolved.size()) {
|
||||
this.command.scope.manager.log(LogLevel.ERROR, "resolved: " + resolved + " paramIdx: " + paramIdx + " - size: " + (resolved != null ? resolved.size() : null));
|
||||
ACFUtil.sneaky(new CommandCompletionTextLookupException());
|
||||
|
||||
Reference in New Issue
Block a user