Question Is there any examples on the new implementation of commands in PaperMC ? (paper-plugin.yml)

Melio

New member
Jan 30, 2024
2
0
1
Hello folks !

I know the paper-plugin.yml is under development, but I was wondering if anyone has an example of the new Commands implementation. I'm having trouble getting my head around it, as it doesn't use the onCommand override.

Here's my code so far, I wonder is it's "good" :
 

electronicboy

Administrator
Staff member
Dec 11, 2021
244
14
43
28
There is no new commands implementation that has been released, that just looks like you're trying to use the old bukkit command system manually, which was a bit of a "at least there's something of fall back to". if you want good commands, you'd be better off looking towards a command framework like cloud.

at least until we get the commodore API in, but, even then, command frameworks will often offer a level of abstractions around various things, i.e. argument mapping, which will not exist inside of brigadier itself
 
  • Like
Reactions: Melio