Class ACFCommandManagerProvider
java.lang.Object
fr.prodrivers.bukkit.commons.commands.ACFCommandManagerProvider
- All Implemented Interfaces:
javax.inject.Provider<co.aikar.commands.BukkitCommandManager>
@Singleton
public class ACFCommandManagerProvider
extends Object
implements javax.inject.Provider<co.aikar.commands.BukkitCommandManager>
Aikar Command Framework provider for Prodrivers plugins. Requires dependency injection.
Aikar Command Framework, or ACF, is a Command Dispatch Framework. This allows easy implementation of Bukkit commands as it takes nearly every concept of boilerplate code commonly found in command handlers, and abstracts them away behind powerful annotations. It provides out-of-the-box, among other things, Validation, Tab Completion, Help Documentation, Syntax Advice, and Stateful Conditions.
ACFProvider is intended to be used with a dependency injector. The command manager returned by it contains
integrations with Messages
facility, so that all messages are
correctly prefixed and strings from your Messages
instance can be
used in ACF as you would with other strings from it.
-
Method Summary
Modifier and TypeMethodDescriptionco.aikar.commands.BukkitCommandManager
get()
Gets a new ACF Bukkit Command Manager.
-
Method Details
-
get
public co.aikar.commands.BukkitCommandManager get()Gets a new ACF Bukkit Command Manager.- Specified by:
get
in interfacejavax.inject.Provider<co.aikar.commands.BukkitCommandManager>
- Returns:
- Database or null
-