aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSimMain.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-03-30 09:03:38 +0000
committerAdam Frisby2008-03-30 09:03:38 +0000
commitfadd19f3140107d7c09e7a82a97dfb490146ccb9 (patch)
tree3ce4581ef1af79d451f0b24ce50128f09482f386 /OpenSim/Region/Application/OpenSimMain.cs
parentThis update has good news and bad news, first the bad. (diff)
downloadopensim-SC-fadd19f3140107d7c09e7a82a97dfb490146ccb9.zip
opensim-SC-fadd19f3140107d7c09e7a82a97dfb490146ccb9.tar.gz
opensim-SC-fadd19f3140107d7c09e7a82a97dfb490146ccb9.tar.bz2
opensim-SC-fadd19f3140107d7c09e7a82a97dfb490146ccb9.tar.xz
**Big ass update warning**
* Renamed plugin console message, to send a message to a plugin, use either "plugin <message>", or any unrecognised message will be sent ("plugin" sends explicitly) This replaces the old "script <message>". * Terrain commands - "terrain <command>" now works again. "Script terrain <command>" does not. Many of the commands have now been reimplemented, eg load-tile. However some have new syntax. * New console command handler, you can now use things like "terrain help" or "terrain save help". See TerrainModule.cs for an example of how to use the new "Commander" class. * Commander class - advanced processing of console input and also enables a script API to be generated from registered console commands.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs26
1 files changed, 9 insertions, 17 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index ca7b7c5..60c6127 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -890,17 +890,8 @@ namespace OpenSim
890 } 890 }
891 break; 891 break;
892 892
893 case "terrain": 893 case "plugin":
894 string result = String.Empty; 894 m_sceneManager.SendCommandToPluginModules(cmdparams);
895
896 if (!m_sceneManager.RunTerrainCmdOnCurrentScene(cmdparams, ref result))
897 {
898 m_console.Error(result);
899 }
900 break;
901
902 case "script":
903 m_sceneManager.SendCommandToCurrentSceneScripts(cmdparams);
904 break; 895 break;
905 896
906 case "command-script": 897 case "command-script":
@@ -1081,14 +1072,15 @@ namespace OpenSim
1081 } 1072 }
1082 } 1073 }
1083 1074
1084 break; 1075 break;
1085 /* 1076
1086 * Temporarily disabled but it would be good to have this - needs to be levered
1087 * in to BaseOpenSimServer (which requires a RunCmd method restrcuture probably)
1088 default: 1077 default:
1089 m_console.Error("Unknown command"); 1078 string[] tmpPluginArgs = new string[cmdparams.Length + 1];
1079 cmdparams.CopyTo(tmpPluginArgs, 1);
1080 tmpPluginArgs[0] = command;
1081
1082 m_sceneManager.SendCommandToPluginModules(tmpPluginArgs);
1090 break; 1083 break;
1091 */
1092 } 1084 }
1093 } 1085 }
1094 1086