![JAR search and dependency download from the Maven repository](/logo.png)
net.minestom.server.utils.callback.CommandCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.utils.callback;
import net.minestom.server.command.CommandSender;
import org.jetbrains.annotations.NotNull;
/**
* Functional interface used by the {@link net.minestom.server.command.CommandManager}
* to execute a callback if an unknown command is run.
* You can set it with {@link net.minestom.server.command.CommandManager#setUnknownCommandCallback(CommandCallback)}.
*/
@FunctionalInterface
public interface CommandCallback {
/**
* Executed if an unknown command is run.
*
* @param sender the command sender
* @param command the complete command string
*/
void apply(@NotNull CommandSender sender, @NotNull String command);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy