MinecraftConsoles/Minecraft.Server.FourKit/Command/CommandExecutor.cs
sylvessa f5f9aa1cf5 finish rewrite; port to cmake, loads of other changes
Theres documentation at https://sylvessa.zip/fourkit/ now. And a bunch of other changes. Check the discord server for a more comprehensive list
2026-03-21 14:01:49 -05:00

18 lines
716 B
C#

namespace Minecraft.Server.FourKit.Command;
/// <summary>
/// Represents a class which contains a single method for executing commands.
/// </summary>
public interface CommandExecutor
{
/// <summary>
/// Executes the given command, returning its success.
/// </summary>
/// <param name="sender">Source of the command.</param>
/// <param name="command">Command which was executed.</param>
/// <param name="label">Alias of the command which was used.</param>
/// <param name="args">Passed command arguments.</param>
/// <returns><c>true</c> if a valid command, otherwise <c>false</c>.</returns>
bool onCommand(CommandSender sender, Command command, string label, string[] args);
}