void UpdateNotification() { MyVisualScriptLogicProvider.RemoveNotification(_notificationId); if (!_config.EnableNotification) { return; } var message = $"{_config.NotificationCurrentText}: {LagNormal * 100:0}%"; if (Pin > TimeSpan.Zero) { message += $" (punishment left: {Pin.TotalSeconds:0} seconds or longer)"; } _notificationId = MyVisualScriptLogicProvider.AddNotification(message, "Red", PlayerId); }
void UpdateCommandNotification() { MyVisualScriptLogicProvider.RemoveNotification(_commandNotificationId); if (Quest >= Quest.Ended) { return; } if (_selfProfiled) { const string Msg = "Type in chat: !lag inspect"; _commandNotificationId = MyVisualScriptLogicProvider.AddNotification(Msg, "Green", PlayerId); } else { const string Msg = "Type in chat: !lag profile"; _commandNotificationId = MyVisualScriptLogicProvider.AddNotification(Msg, "Green", PlayerId); } }