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) } 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: