Skip to content

Extra annotations are not ignored #36

@JavierFlores09

Description

@JavierFlores09

Expected behavior

For annotations unrelated to StrokkCommands on parameters to be ignored

Observed/Actual behavior

When you put an annotation on an executor or an argument, it fails to compile with this type of error:

D:\Paper\test-plugin\src\main\java\io\papermc\testplugin\TestCommand.java:14: error: Cannot find Brigadier equivalent for argument of type org.bukkit.entity.@org.jetbrains.annotations.NotNull Player.
    void test(CommandSender sender, @NotNull @Executor Player player) {

Steps/models to reproduce

Just create a command and add a @NotNull annotation to a method parameter

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions