mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-25 08:27:28 +00:00
Theres documentation at https://sylvessa.zip/fourkit/ now. And a bunch of other changes. Check the discord server for a more comprehensive list
28 lines
629 B
C#
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";
|
|
}
|