Adds example to OpenSim.ini.example for Admin Default Parcel settings

avinationmerge
Careminster Staff 2010-01-18 16:23:13 -06:00 committed by Melanie
parent 6772c9d2b6
commit 24056dc98b
2 changed files with 11 additions and 2 deletions

View File

@ -81,7 +81,7 @@ namespace OpenSim.Region.CoreModules.World.Land
private int m_lastLandLocalID = LandChannel.START_LAND_LOCAL_ID - 1;
private bool m_allowedForcefulBans = true;
private string DefaultGodParcelGroup;
private UUID DefaultGodParcelGroup;
private string DefaultGodParcelName;
// caches ExtendedLandData
@ -96,6 +96,12 @@ namespace OpenSim.Region.CoreModules.World.Land
public void Initialise(IConfigSource source)
{
IConfig cnf = source.Configs["LandManagement"];
if (cnf == null)
{
DefaultGodParcelGroup = new UUID(cnf.GetString("DefaultAdministratorGroupUUID", UUID.Zero.ToString()));
DefaultGodParcelName = cnf.GetString("DefaultAdministratorParcelName", "Default Parcel");
}
}
public void AddRegion(Scene scene)
@ -1566,7 +1572,7 @@ namespace OpenSim.Region.CoreModules.World.Land
land = landObject;
}
}
land.DeedToGroup(new UUID(DefaultGodParcelGroup));
land.DeedToGroup(DefaultGodParcelGroup);
land.LandData.Name = DefaultGodParcelName;
land.SendLandUpdateToAvatarsOverMe();
}

View File

@ -1351,6 +1351,9 @@
; For example- http://127.0.0.1:9000/SStats/
; enabled=false
[LandManagement]
; DefaultAdministratorGroupUUID = "";
; DefaultAdministratorParcelName = "";
;;
;; These are defaults that are overwritten below in [Architecture].