Class CommandRegistry


  • public class CommandRegistry
    extends java.lang.Object
    Place to store the LapisCoreCommands that are registered to each plugin
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandRegistry()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static LapisCoreCommand getCommand​(java.lang.String name)
      Get a LapisCore command registered to this plugin
      static void registerCommand​(LapisCoreCommand command)
      Regster a command to this plugin for later retrieval
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommandRegistry

        public CommandRegistry()
    • Method Detail

      • registerCommand

        public static void registerCommand​(LapisCoreCommand command)
        Regster a command to this plugin for later retrieval
        Parameters:
        command - The command to be stored
      • getCommand

        public static LapisCoreCommand getCommand​(java.lang.String name)
        Get a LapisCore command registered to this plugin
        Parameters:
        name - The name of the command you wish to get
        Returns:
        the command by the name given, or null if not found