Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paper 1.20.6/1.21 event warning when using brigadier #409

Open
Insprill opened this issue Jun 20, 2024 · 2 comments
Open

Paper 1.20.6/1.21 event warning when using brigadier #409

Insprill opened this issue Jun 20, 2024 · 2 comments

Comments

@Insprill
Copy link

When registering commands on Paper 1.20.6 (PaperMC/Paper@e41d44f) and 1.21 (PaperMC/Paper@2df432f) with the unstable brigadier API enabled, the following warning is printed:

[02:54:19 WARN]: [Plugin] "Plugin vx.x.x" has registered a listener for com.destroystokyo.paper.event.brigadier.CommandRegisteredEvent on method "public void my.package.libs.co.aikar.commands.PaperBrigadierManager.onCommandRegister(com.destroystokyo.paper.event.brigadier.CommandRegisteredEvent<com.destroystokyo.paper.brigadier.BukkitBrigadierCommandSource>)", but the event is Deprecated. "This event has been superseded by the Commands API and will be removed in a future release. Listen to LifecycleEvents.COMMANDS instead."; please notify the authors [Insprill].

Minimal repro:

public final class Main extends JavaPlugin {
    @Override
    public void onEnable() {
        PaperCommandManager commandManager = new PaperCommandManager(this);
        commandManager.enableUnstableAPI("brigadier");
    }
}
@MiniDigger
Copy link
Contributor

this will require bigger changes in ACF
for reference: https://docs.papermc.io/paper/dev/commands

@chickeneer
Copy link
Collaborator

Thanks for notifying us. Yes, we know that our Brigadier needs updated. Hopefully someone will time for it sooner than later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants