How to register plugin without plugin.yml

tobiasbms

New member
Jan 19, 2024
1
0
1
Hello community.

I hope you all are well!

I am trying to register a command without the plugin.yml file, and do as the documentation on papermc says - use the CommandMap.

This seems quite complex and I am in a beginner level state currently.


I have the following code currently:


I dont understand the commandmap - how should this be registered ? Because currently I dont have a instance of a commandMap!??
I hope somebody can point me in the right direction.

And I am not going to "just use the plugin.yml". The requirements is to use the CommandMap.
 

Notro

New member
Aug 23, 2023
9
0
1
Hello, this Resource might help you.
But I really don't understand, why you are trying to achieve that...?

You can get the instance of CommandMap by doing Bukkit#getCommandMap();