mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Thank you kindly, Patnad, for a patch that:
This patch allow you to see region rating from the console. Type "show ratings" and it will show you the rating of all your regions.
This commit is contained in:
@@ -226,6 +226,9 @@ namespace OpenSim
|
||||
m_console.Commands.AddCommand("region", false, "show queues",
|
||||
"show queues",
|
||||
"Show queue data", HandleShow);
|
||||
m_console.Commands.AddCommand("region", false, "show ratings",
|
||||
"show ratings",
|
||||
"Show rating data", HandleShow);
|
||||
|
||||
m_console.Commands.AddCommand("region", false, "backup",
|
||||
"backup",
|
||||
@@ -857,6 +860,28 @@ namespace OpenSim
|
||||
case "queues":
|
||||
Notice(GetQueuesReport());
|
||||
break;
|
||||
|
||||
case "ratings":
|
||||
m_sceneManager.ForEachScene(
|
||||
delegate(Scene scene)
|
||||
{
|
||||
string rating = "";
|
||||
if (scene.RegionInfo.RegionSettings.Maturity == 1)
|
||||
{
|
||||
rating = "MATURE";
|
||||
}
|
||||
else if (scene.RegionInfo.RegionSettings.Maturity == 2)
|
||||
{
|
||||
rating = "ADULT";
|
||||
}
|
||||
else
|
||||
{
|
||||
rating = "PG";
|
||||
}
|
||||
m_console.Notice("Region Name: " + scene.RegionInfo.RegionName + " , Region Rating: " +
|
||||
rating);
|
||||
});
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user