From f2c449f10e7c6b7dc3468ecdaea9e97039e1e0a9 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 15 Jul 2007 22:04:56 +0000 Subject: * Added new scripting related events, in particular a new event which is triggered by console commands so that the script can subscribe to console messages and operate when they occur. * Added new example script (work in progress) * Fixed typo in Scripting engines for C# and JScript.NET --- OpenSim/Region/Application/OpenSimMain.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Application/OpenSimMain.cs') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index ab03ed1..6968c41 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -422,7 +422,7 @@ namespace OpenSim { case "help": m_log.Error("show users - show info about connected users"); - m_log.Error("shutdown - disconnect all clients and shutdown"); + m_log.Error("quit - disconnect all clients and shutdown"); break; case "show": @@ -442,6 +442,12 @@ namespace OpenSim } } break; + case "script": + for (int i = 0; i < m_localWorld.Count; i++) + { + ((Scene)m_localWorld[i]).SendCommandToScripts(cmdparams); + } + break; case "quit": case "shutdown": -- cgit v1.1