ascnet/AscNet.GameServer/Commands/SaveCommand.cs

16 lines
429 B
C#
Raw Permalink Normal View History

2024-04-11 09:11:34 +00:00
namespace AscNet.GameServer.Commands
{
[CommandName("save")]
internal class SaveCommand : Command
{
public SaveCommand(Session session, string[] args, bool validate = true) : base(session, args, validate) { }
public override string Help => "Command to save the current session state to the database";
public override void Execute()
{
session.Save();
}
}
}