Interface ArgumentCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback executed when an error is found within the
Argument
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(@NotNull CommandSender sender, @NotNull ArgumentSyntaxException exception) Executed when an error is found.
-
Method Details
-
apply
void apply(@NotNull @NotNull CommandSender sender, @NotNull @NotNull ArgumentSyntaxException exception) Executed when an error is found.- Parameters:
sender
- the sender which executed the commandexception
- the exception containing the message, input and error code related to the issue
-