Command Manager

The basic entry for everything related to your commands.


#Creating a command manager

Each platform has its own command manager and each manager has its own sender type.

// Bukkit
BukkitCommandManager<CommandSender> manager = BukkitCommandManager.create(plugin);

// JDA Prefixed
PrefixedCommandManager<PrefixedSender> manager = PrefixedCommandManager.create(jda);

// JDA slash
SlashCommandManager<SlashSender> manager = SlashCommandManager.create(jda);

The type parameter for the sender is necessary because you can also specify your own sender type by passing a custom SenderMapper. You can read more about it here.

#Usage

The command manager is used for doing everything for the commands, registering commands, messages, arguments, etc.

Edit this page on GitHub

On this page

Code copied to clipboard!