private void RegisterModule(string module, string[] args)
{
m_log.Info("[OMECONOMY]: +-");
m_log.Info("[OMECONOMY]: | Your grid identifier is \"" + m_communication.getGridShortName() + "\"");
string longName = MainConsole.Instance.CmdPrompt(" [OMECONOMY]: | Please enter the grid's full name");
string adminUUID = MainConsole.Instance.CmdPrompt(" [OMECONOMY]: | Please enter the admins Avatar UUID");
Dictionary <string, string> d = new Dictionary <string, string>();
d.Add("method", "registerScript");
d.Add("gridLongName", longName);
d.Add("adminUUID", adminUUID);
d.Add("gridDescription", "");
Dictionary <string, string> response = m_communication.DoRequestDictionary(d);
if (response != null && response.ContainsKey("success") && response["success"] == "TRUE")
{
m_log.Info("[OMECONOMY]: +-");
m_log.Info("[OMECONOMY]: | Please visit");
m_log.Info("[OMECONOMY]: | " + response["scriptURL"]);
m_log.Info("[OMECONOMY]: | to get the Terminal's script");
m_log.Info("[OMECONOMY]: +-");
}
else
{
m_log.Error("Could not active the grid. Please check the parameters and try again");
}
}