aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-01-27 19:37:20 +0000
committerJustin Clark-Casey (justincc)2011-01-27 19:37:20 +0000
commitab9a0f2f1db66a8d7d6957ea0caee13465334a9c (patch)
tree42857866c7a4d6844955d995d588c6b2b01c13f5
parentFix OAR parcel loading so that old parcels are replaced by the new instead of... (diff)
downloadopensim-SC_OLD-ab9a0f2f1db66a8d7d6957ea0caee13465334a9c.zip
opensim-SC_OLD-ab9a0f2f1db66a8d7d6957ea0caee13465334a9c.tar.gz
opensim-SC_OLD-ab9a0f2f1db66a8d7d6957ea0caee13465334a9c.tar.bz2
opensim-SC_OLD-ab9a0f2f1db66a8d7d6957ea0caee13465334a9c.tar.xz
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
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs16
1 files changed, 13 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index bee223a..8ef2902 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -1632,14 +1632,24 @@ namespace OpenSim.Region.CoreModules.World.Land
1632 1632
1633 protected void InstallInterfaces() 1633 protected void InstallInterfaces()
1634 { 1634 {
1635 Command showCommand = 1635 Command clearCommand
1636 new Command("show", CommandIntentions.COMMAND_STATISTICAL, ShowParcelsCommand, "Shows all parcels on the current region."); 1636 = new Command("clear", CommandIntentions.COMMAND_HAZARDOUS, ClearCommand, "Clears all the parcels from the region.");
1637 Command showCommand
1638 = new Command("show", CommandIntentions.COMMAND_STATISTICAL, ShowParcelsCommand, "Shows all parcels on the region.");
1637 1639
1640 m_commander.RegisterCommand("clear", clearCommand);
1638 m_commander.RegisterCommand("show", showCommand); 1641 m_commander.RegisterCommand("show", showCommand);
1639 1642
1640 // Add this to our scene so scripts can call these functions 1643 // Add this to our scene so scripts can call these functions
1641 m_scene.RegisterModuleCommander(m_commander); 1644 m_scene.RegisterModuleCommander(m_commander);
1642 } 1645 }
1646
1647 protected void ClearCommand(Object[] args)
1648 {
1649 Clear();
1650
1651 MainConsole.Instance.Output("Cleared all parcels from {0}", m_scene.RegionInfo.RegionName);
1652 }
1643 1653
1644 protected void ShowParcelsCommand(Object[] args) 1654 protected void ShowParcelsCommand(Object[] args)
1645 { 1655 {