You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Phoenix-Ra edited this page Jul 21, 2023
·
6 revisions
Take a look at AtumCommand and AtumSubcommand
So, as u can see it looks almost the same as the default bukkit command API.
What is usage and description?
They are used for automatic creation of '/[command] help' command!
You no longer need to care about it.
Besides that, the '/[command] reload' is automatically created as well.
It simply uses AtumPlugin#reload() method
How to register the command?
First of all, of course add it to the plugin.yml
Then, open ur main class and override the following method: AtumPlugin#loadPluginCommands()
NotifyNull
It is pretty useful feature to simplify your code and make it look less messy.