SimpAPI icon indicating copy to clipboard operation
SimpAPI copied to clipboard

Unhandled exception executing tab-completer

Open dwesolowski opened this issue 3 years ago • 2 comments

When using tab-completer if I space after the last <arg> when entering a command I get the error below.

Unhandled exception executing tab-completer

public List<String> getSubcommandArguments(Player player, String[] args) {
        if (args.length == 2) {
            return Arrays.asList("<player>")
        }
        return null;
    }

The only way I could resolve this was to remove the @NotNull after public below in CoreCommand.java

public List<String> tabComplete(@NotNull CommandSender sender

dwesolowski avatar Jul 19 '21 19:07 dwesolowski