Interface ICommand
- All Known Implementing Classes:
BroadcastCommand
,ChatExtensionsCommand
,DiscordLinkCommand
,ReloadCommand
public interface ICommand
In-game command interface
-
Method Summary
Modifier and TypeMethodDescriptionboolean
invoke
(ICommandCaller caller, String[] params) Calls the command
-
Method Details
-
getCommandName
CommandRegistry.CommandName getCommandName()- Returns:
- The command enum
-
getDescription
String getDescription()- Returns:
- The command description
-
invoke
Calls the command- Parameters:
caller
- The command callerparams
- The command params- Returns:
true
if the command ran successfully
-