public string modSendCommand(string module, string command, string k) { ScriptProtection.CheckThreatLevel(ThreatLevel.Moderate, "modSendCommand", m_host, "MOD"); UUID req = UUID.Random(); m_comms.RaiseEvent(m_itemID, req.ToString(), module, command, k); return(req.ToString()); }
/// <summary> /// Send a command to functions registered on an event /// </summary> public string modSendCommand(string module, string command, string k) { if (!m_MODFunctionsEnabled) { MODShoutError("Module command functions not enabled"); return(UUID.Zero.ToString());; } UUID req = UUID.Random(); m_comms.RaiseEvent(m_item.ItemID, req.ToString(), module, command, k); return(req.ToString()); }