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,23 @@
using NitroxModel.DataStructures.GameLogic;
using NitroxServer.ConsoleCommands.Abstract;
namespace NitroxServer.ConsoleCommands
{
internal class SummaryCommand : Command
{
private readonly Server server;
public SummaryCommand(Server server) : base("summary", Perms.MODERATOR, "Shows persisted data")
{
this.server = server;
AllowedArgOverflow = true;
}
protected override void Execute(CallArgs args)
{
Perms viewerPerms = args.Sender.OrNull()?.Permissions ?? Perms.PLAYER;
SendMessage(args.Sender, server.GetSaveSummary(viewerPerms));
}
}
}