Package me.lucko.commodore
Class CommodoreProvider
java.lang.Object
me.lucko.commodore.CommodoreProvider
Factory for obtaining instances of
Commodore.-
Method Summary
Modifier and TypeMethodDescriptionstatic CommodoregetCommodore(org.bukkit.plugin.Plugin plugin) Obtains aCommodoreinstance for the given plugin.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 getCommodore(org.bukkit.plugin.Plugin plugin) throws BrigadierUnsupportedException Obtains aCommodoreinstance for the given plugin.- Parameters:
plugin- the plugin- Returns:
- the commodore instance
- Throws:
BrigadierUnsupportedException- if brigadier is notsupportedby the server.
-