Add "land clear" command

This clears all parcels from the currently selected region and replaces them with the single region spanning default parcel owned by the estate owner
viewer-2-initial-appearance
Justin Clark-Casey (justincc) 2011-01-27 19:37:20 +00:00
parent 5a26dc2743
commit ab9a0f2f1d
1 changed files with 13 additions and 3 deletions

View File

@ -1632,14 +1632,24 @@ namespace OpenSim.Region.CoreModules.World.Land
protected void InstallInterfaces() protected void InstallInterfaces()
{ {
Command showCommand = Command clearCommand
new Command("show", CommandIntentions.COMMAND_STATISTICAL, ShowParcelsCommand, "Shows all parcels on the current region."); = new Command("clear", CommandIntentions.COMMAND_HAZARDOUS, ClearCommand, "Clears all the parcels from the region.");
Command showCommand
= new Command("show", CommandIntentions.COMMAND_STATISTICAL, ShowParcelsCommand, "Shows all parcels on the region.");
m_commander.RegisterCommand("clear", clearCommand);
m_commander.RegisterCommand("show", showCommand); m_commander.RegisterCommand("show", showCommand);
// Add this to our scene so scripts can call these functions // Add this to our scene so scripts can call these functions
m_scene.RegisterModuleCommander(m_commander); m_scene.RegisterModuleCommander(m_commander);
} }
protected void ClearCommand(Object[] args)
{
Clear();
MainConsole.Instance.Output("Cleared all parcels from {0}", m_scene.RegionInfo.RegionName);
}
protected void ShowParcelsCommand(Object[] args) protected void ShowParcelsCommand(Object[] args)
{ {