Moved CommandRestart, CommandLogin and CommandSaveWorld from the MudEngine project into the MudGame project within the Scripts directory.
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.
This commit is contained in:
parent
a00f60d22b
commit
eff71f38cd
9 changed files with 27 additions and 2600 deletions
16
MudGame/Scripts/AdminCommands/CommandSaveWorld.cs
Normal file
16
MudGame/Scripts/AdminCommands/CommandSaveWorld.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue