Files
Nitrox/NitroxServer/ConsoleCommands/SummaryCommand.cs
2025-07-06 00:23:46 +02:00

24 lines
664 B
C#

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));
}
}
}