mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-29 23:17:59 +02:00
1c65b36087
Also removed magic space string, replaced with constant from commons apache library
22 lines
741 B
Java
22 lines
741 B
Java
package net.minestom.server.command.builder;
|
|
|
|
import net.minestom.server.command.CommandSender;
|
|
import net.minestom.server.command.builder.arguments.Argument;
|
|
import net.minestom.server.command.builder.exception.ArgumentSyntaxException;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/**
|
|
* Callback executed when an error is found within the {@link Argument}.
|
|
*/
|
|
@FunctionalInterface
|
|
public interface ArgumentCallback {
|
|
|
|
/**
|
|
* Executed when an error is found.
|
|
*
|
|
* @param sender the sender which executed the command
|
|
* @param exception the exception containing the message, input and error code related to the issue
|
|
*/
|
|
void apply(@NotNull CommandSender sender, @NotNull ArgumentSyntaxException exception);
|
|
}
|