From c5299267b91a112186c7cbbbc91aa433b89c3db4 Mon Sep 17 00:00:00 2001 From: Trix Date: Thu, 1 Jan 2026 16:24:33 -0500 Subject: [PATCH 1/2] Add extraData to alert message formatting --- handler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handler.go b/handler.go index 4fa3c60..40b91e0 100644 --- a/handler.go +++ b/handler.go @@ -208,6 +208,7 @@ func (h *OomphHandler) HandleFlag(ctx *event.Context[*player.Player], dtc player dtcKey := dtc.Type() + "_" + dtc.SubType() msgTmpl := oconfig.DtcOpts(dtcKey).FlagMsg viol := strconv.FormatFloat(m.Violations, 'f', 2, 64) + dataStr := utils.KeyValsToString(extraData) // One-pass replace. alertMsg := strings.NewReplacer( @@ -217,6 +218,7 @@ func (h *OomphHandler) HandleFlag(ctx *event.Context[*player.Player], dtc player "{detection_type}", dtc.Type(), "{detection_subtype}", dtc.SubType(), "{violations}", viol, + "{extraData}", dataStr, ).Replace(msgTmpl) h.broadcastAlert(alertMsg) } From aeadbb9a6624c77a6509733dae11f0094a1fbbd7 Mon Sep 17 00:00:00 2001 From: Trix Date: Thu, 1 Jan 2026 18:56:28 -0500 Subject: [PATCH 2/2] Add {extraData} to detections documentation Add extra data placeholder for detections. --- oomph_config.hjson | 1 + 1 file changed, 1 insertion(+) diff --git a/oomph_config.hjson b/oomph_config.hjson index cafa8da..d6cea68 100644 --- a/oomph_config.hjson +++ b/oomph_config.hjson @@ -170,6 +170,7 @@ # - {xuid}: The player's XBOX Live ID. # - {violations}: The amount of violations that have been reached on the detection. # - {prefix}: The prefix defined in the Oomph configuration. + # - {extraData}: The extra data provided for detections detections: { Aim_A: