Class CommodoreProvider

java.lang.Object
studio.mevera.imperat.commodore.CommodoreProvider

public final class CommodoreProvider extends Object
Factory for getting instances of Commodore.
  • 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 a Commodore instance for the given Imperat dispatcher.
      Parameters:
      imperat - the BukkitImperat dispatcher
      Returns:
      the commodore instance
      Throws:
      BrigadierUnsupportedException - if brigadier is not supported by the server.