mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-13 04:33:52 +00:00
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";
|
||
|
|
}
|