first commit

This commit is contained in:
2025-07-06 00:23:46 +02:00
commit 38f50c8819
1788 changed files with 112878 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using System.Collections.Generic;
using NitroxModel.DataStructures.GameLogic;
using NitroxServer.ConsoleCommands.Abstract;
using NitroxServer.ConsoleCommands.Abstract.Type;
namespace NitroxServer.ConsoleCommands
{
internal class BroadcastCommand : Command
{
public override IEnumerable<string> Aliases { get; } = new[] { "say" };
public BroadcastCommand() : base("broadcast", Perms.MODERATOR, "Broadcasts a message on the server")
{
AddParameter(new TypeString("message", true, "The message to be broadcast"));
AllowedArgOverflow = true;
}
protected override void Execute(CallArgs args)
{
SendMessageToAllPlayers(args.GetTillEnd());
}
}
}