Interface CommandCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface used by the
CommandManager
to execute a callback if an unknown command is run.
You can set it with CommandManager.setUnknownCommandCallback(CommandCallback)
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(@NotNull CommandSender sender, @NotNull String command) Executed if an unknown command is run.
-
Method Details
-
apply
Executed if an unknown command is run.- Parameters:
sender
- the command sendercommand
- the complete command string
-