Package net.lapismc.lapiscore.commands
Class CommandRegistry
- java.lang.Object
-
- net.lapismc.lapiscore.commands.CommandRegistry
-
public class CommandRegistry extends java.lang.ObjectPlace 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 LapisCoreCommandgetCommand(java.lang.String name)Get a LapisCore command registered to this pluginstatic voidregisterCommand(LapisCoreCommand command)Regster a command to this plugin for later retrieval
-
-
-
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
-
-