Now 3rd party users can see how restarting the server takes place, saving the world and logging into the game world. CommandEditRealm, EditRoom and EditZone was deleted. They will be re-built at a later date. For the time being, use the pre-built example scripts within the MudGame project.
16 lines
439 B
C#
16 lines
439 B
C#
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();
|
|
}
|
|
}
|
|
}
|
|
}
|