Package studio.mevera.imperat.commodore
Class CommodoreProvider
java.lang.Object
studio.mevera.imperat.commodore.CommodoreProvider
Factory for getting instances of
Commodore.-
Method Summary
Modifier and TypeMethodDescriptionstatic Commodore<org.bukkit.command.Command>getCommodore(BukkitImperat imperat) Obtains aCommodoreinstance for the given Imperat dispatcher.static booleanChecks to see if the Brigadier command system is supported by the server.
-
Method Details
-
isSupported
public static boolean isSupported()Checks to see if the Brigadier command system is supported by the server.- Returns:
- true if commodore is supported.
-
getCommodore
public static Commodore<org.bukkit.command.Command> getCommodore(BukkitImperat imperat) throws BrigadierUnsupportedException Obtains aCommodoreinstance for the given Imperat dispatcher.- Parameters:
imperat- the BukkitImperat dispatcher- Returns:
- the commodore instance
- Throws:
BrigadierUnsupportedException- if brigadier is notsupportedby the server.
-