30 lines
756 B
C#
30 lines
756 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.IO;
|
|
using System.Text;
|
|
|
|
using MudEngine.FileSystem;
|
|
using MudEngine.GameObjects.Characters;
|
|
using MudEngine.GameManagement;
|
|
using MudEngine.Commands;
|
|
using MudEngine.GameObjects.Environment;
|
|
|
|
namespace MudEngine.Commands
|
|
{
|
|
public class CommandSaveWorld : BaseCommand
|
|
{
|
|
public CommandSaveWorld()
|
|
{
|
|
Help.Add("Saves the game world.");
|
|
}
|
|
|
|
public override void Execute(String command, BaseCharacter player)
|
|
{
|
|
if ((player.Role == SecurityRoles.Admin) || (player.Role == SecurityRoles.GM))
|
|
{
|
|
player.ActiveGame.Save();
|
|
}
|
|
}
|
|
}
|
|
}
|