mirror of
https://github.com/aikar/commands.git
synced 2026-06-06 08:52:17 +00:00
Fix another empty args issue for @Values and context
This commit is contained in:
@@ -208,7 +208,7 @@ public class RegisteredCommand <R extends CommandExecutionContext<? extends Comm
|
||||
}
|
||||
final Values values = parameter.getAnnotation(Values.class);
|
||||
if (values != null) {
|
||||
String arg = args.get(0);
|
||||
String arg = !args.isEmpty() ? args.get(0) : "";
|
||||
|
||||
final String[] split = ACFPatterns.PIPE.split(scope.manager.getCommandReplacements().replace(values.value()));
|
||||
Set<String> possible = Sets.newHashSet();
|
||||
|
||||
Reference in New Issue
Block a user