aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSimMain.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Application/OpenSimMain.cs')
-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