Class CommandRegistry

java.lang.Object
com.thevoxelbox.voxelsniper.command.CommandRegistry

public class CommandRegistry extends Object
  • Field Details

    • SNIPE_KEY

      public static final cloud.commandframework.keys.CloudKey<Snipe> SNIPE_KEY
    • PERFORMER_SNIPE_KEY

      public static final cloud.commandframework.keys.CloudKey<PerformerSnipe> PERFORMER_SNIPE_KEY
    • TOOLKIT_KEY

      public static final cloud.commandframework.keys.CloudKey<Toolkit> TOOLKIT_KEY
  • Constructor Details

    • CommandRegistry

      public CommandRegistry(VoxelSniperPlugin plugin)
      Create a new command registry.
      Parameters:
      plugin - the plugin
  • Method Details

    • initialize

      public void initialize() throws Exception
      Initialize the command registry.
      Throws:
      Exception - initialization exception
      Since:
      3.0.0
    • register

      public void register(VoxelCommandElement voxelCommandElement)
      Register the elements from a voxel command element into the command manager.
      Parameters:
      voxelCommandElement - the voxel command element
      Since:
      3.0.0
    • getCommandManager

      public cloud.commandframework.bukkit.BukkitCommandManager<SniperCommander> getCommandManager()
      Return the command manager.
      Returns:
      the command manager
      Since:
      3.0.0
    • getAnnotationParser

      public cloud.commandframework.annotations.AnnotationParser<SniperCommander> getAnnotationParser()
      Return the annotation parser.
      Returns:
      the annotation parser
      Since:
      3.0.0