mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-29 19:41:35 +01:00
Fixed NPE on bungee tab completion sometimes
This commit is contained in:
parent
eff5faba44
commit
2cf7725b58
@ -82,7 +82,7 @@ public class Arguments {
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return args.isEmpty();
|
||||
return args.isEmpty() || args.get(0).isEmpty();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -71,7 +71,7 @@ public class Subcommand {
|
||||
}
|
||||
|
||||
public BiFunction<CMDSender, Arguments, List<String>> getArgumentResolver() {
|
||||
return argumentResolver;
|
||||
return argumentResolver != null ? argumentResolver : ((sender, arguments) -> Collections.emptyList());
|
||||
}
|
||||
|
||||
public String getArgumentsAsString() {
|
||||
|
Loading…
Reference in New Issue
Block a user