Adds example to OpenSim.ini.example for Admin Default Parcel settings
parent
6772c9d2b6
commit
24056dc98b
|
@ -81,7 +81,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||||
private int m_lastLandLocalID = LandChannel.START_LAND_LOCAL_ID - 1;
|
private int m_lastLandLocalID = LandChannel.START_LAND_LOCAL_ID - 1;
|
||||||
|
|
||||||
private bool m_allowedForcefulBans = true;
|
private bool m_allowedForcefulBans = true;
|
||||||
private string DefaultGodParcelGroup;
|
private UUID DefaultGodParcelGroup;
|
||||||
private string DefaultGodParcelName;
|
private string DefaultGodParcelName;
|
||||||
|
|
||||||
// caches ExtendedLandData
|
// caches ExtendedLandData
|
||||||
|
@ -96,6 +96,12 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||||
|
|
||||||
public void Initialise(IConfigSource source)
|
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)
|
public void AddRegion(Scene scene)
|
||||||
|
@ -1566,7 +1572,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||||
land = landObject;
|
land = landObject;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
land.DeedToGroup(new UUID(DefaultGodParcelGroup));
|
land.DeedToGroup(DefaultGodParcelGroup);
|
||||||
land.LandData.Name = DefaultGodParcelName;
|
land.LandData.Name = DefaultGodParcelName;
|
||||||
land.SendLandUpdateToAvatarsOverMe();
|
land.SendLandUpdateToAvatarsOverMe();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1351,6 +1351,9 @@
|
||||||
; For example- http://127.0.0.1:9000/SStats/
|
; For example- http://127.0.0.1:9000/SStats/
|
||||||
; enabled=false
|
; enabled=false
|
||||||
|
|
||||||
|
[LandManagement]
|
||||||
|
; DefaultAdministratorGroupUUID = "";
|
||||||
|
; DefaultAdministratorParcelName = "";
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; These are defaults that are overwritten below in [Architecture].
|
;; These are defaults that are overwritten below in [Architecture].
|
||||||
|
|
Loading…
Reference in New Issue