Thanks SachaMagne for a patch which adds the following console commands:
login-enable : Allow login at sim level (opensim.exe) login-disable: Stop any login BUT keep the logged avt login-status : Return the actual status0.6.1-post-fixes
parent
95fec14201
commit
d8bb20fc1c
|
@ -310,6 +310,19 @@ namespace OpenSim
|
||||||
Create(cmdparams);
|
Create(cmdparams);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "login-enable":
|
||||||
|
ProcessLogin(true);
|
||||||
|
break;
|
||||||
|
case "login-disable":
|
||||||
|
ProcessLogin(false);
|
||||||
|
break;
|
||||||
|
case "login-status":
|
||||||
|
if (m_commsManager.GridService.RegionLoginsEnabled == false)
|
||||||
|
|
||||||
|
m_log.Info("[ Login ] Login are disabled ");
|
||||||
|
else
|
||||||
|
m_log.Info("[ Login ] Login are enabled");
|
||||||
|
break;
|
||||||
case "create-region":
|
case "create-region":
|
||||||
string regionsDir = ConfigSource.Source.Configs["Startup"].GetString("regionload_regionsdir", "Regions").Trim();
|
string regionsDir = ConfigSource.Source.Configs["Startup"].GetString("regionload_regionsdir", "Regions").Trim();
|
||||||
string regionFile = String.Format("{0}/{1}", regionsDir, cmdparams[1]);
|
string regionFile = String.Format("{0}/{1}", regionsDir, cmdparams[1]);
|
||||||
|
@ -659,6 +672,9 @@ namespace OpenSim
|
||||||
m_console.Notice("config get section field - get a config value");
|
m_console.Notice("config get section field - get a config value");
|
||||||
m_console.Notice("config save - save OpenSim.ini");
|
m_console.Notice("config save - save OpenSim.ini");
|
||||||
m_console.Notice("terrain help - show help for terrain commands.");
|
m_console.Notice("terrain help - show help for terrain commands.");
|
||||||
|
m_console.Notice("login-enable - Allows login at sim level");
|
||||||
|
m_console.Notice("login-disable - Disable login at sim level");
|
||||||
|
m_console.Notice("login-status - Show the actual login status");
|
||||||
|
|
||||||
ShowPluginCommandsHelp(CombineParams(helpArgs, 0), m_console);
|
ShowPluginCommandsHelp(CombineParams(helpArgs, 0), m_console);
|
||||||
|
|
||||||
|
|
|
@ -303,6 +303,21 @@ namespace OpenSim
|
||||||
return m_commsManager.AddUser(tempfirstname, templastname, tempPasswd, email, regX, regY);
|
return m_commsManager.AddUser(tempfirstname, templastname, tempPasswd, email, regX, regY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ProcessLogin(bool LoginEnabled)
|
||||||
|
{
|
||||||
|
if (LoginEnabled)
|
||||||
|
{
|
||||||
|
m_log.Info("[Login] Login are now enabled ");
|
||||||
|
m_commsManager.GridService.RegionLoginsEnabled = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_log.Info("[Login] Login are now disabled ");
|
||||||
|
m_commsManager.GridService.RegionLoginsEnabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Execute the region creation process. This includes setting up scene infrastructure.
|
/// Execute the region creation process. This includes setting up scene infrastructure.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue