Skip to content

Commands API

Phoenix-Ra edited this page Jul 21, 2023 · 6 revisions

Take a look at AtumCommand and AtumSubcommand

image

image

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.

Usage Examples:

image

Clone this wiki locally