MinecraftConsoles/Minecraft.Server.FourKit/Command/ConsoleCommandSender.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

28 lines
629 B
C#

namespace Minecraft.Server.FourKit.Command;
/// <summary>
/// Represents the server console as a command sender.
/// </summary>
public class ConsoleCommandSender : CommandSender
{
internal static readonly ConsoleCommandSender Instance = new();
private ConsoleCommandSender() { }
/// <inheritdoc/>
public void sendMessage(string message)
{
ServerLog.Info("console", message);
}
/// <inheritdoc/>
public void sendMessage(string[] messages)
{
foreach (var msg in messages)
sendMessage(msg);
}
/// <inheritdoc/>
public string getName() => "CONSOLE";
}