void TriggerAlert(string function, LimitDef d, string message, ISceneChildEntity host)
{
if (d.Alert == LimitAlert.Console || d.Alert == LimitAlert.ConsoleAndInworld)
MainConsole.Instance.Warn("[Limitor]: " + message);
if (d.Alert == LimitAlert.Inworld || d.Alert == LimitAlert.ConsoleAndInworld)
{
IChatModule chatModule = host.ParentEntity.Scene.RequestModuleInterface<IChatModule>();
if (chatModule != null)
chatModule.SimChat("[Limitor]: " + message, ChatTypeEnum.DebugChannel,
2147483647, host.AbsolutePosition, host.Name, host.UUID, false,
host.ParentEntity.Scene);
}
}