Question How can I register a command in plugin that use paper-plugin.yml

  • After careful consideration and due to limited usage, we’ve made the decision to discontinue the PaperMC forums. Moving forward, we recommend using Hangar for plugin uploads, and for all other community discussions and support, please join us on Discord.

yap241986

New member
May 20, 2023
7
0
1
How can i register a command if i use paper-plugin.yml instead of plugin.yml?
I Searched i've found only person that say "you have to register them yourself"
 

electronicboy

Administrator
Staff member
Dec 11, 2021
321
18
68
28
Basically, either you get the CommandMap (From the Bukkit/Server class) and use the register methods there, or, enjoy it being 2023 and use a command framework such as the cloud command framework
 
  • Like
Reactions: yap241986