All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.command.builder.CommandExecutor Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
package net.minestom.server.command.builder;

import net.minestom.server.command.CommandSender;
import org.jetbrains.annotations.NotNull;

/**
 * Callback executed once a syntax has been found for a {@link Command}.
 * 

* Warning: it could be the default executor from {@link Command#getDefaultExecutor()} if not null. */ @FunctionalInterface public interface CommandExecutor { /** * Executes the command callback once the syntax has been called (or the default executor). * * @param sender the sender of the command * @param context the command context, used to retrieve the arguments and various other things */ void apply(@NotNull CommandSender sender, @NotNull CommandContext context); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy