Add AdminAddedItemInformation insight

This commit is contained in:
2026-04-30 21:44:08 +00:00
parent 55f769ca1e
commit 90c85a052f
3 changed files with 83 additions and 1 deletions

View File

@@ -25,4 +25,12 @@ class AdminPattern
public const string RELOADED_OPTIONS = '/^(?<admin>.+?) reloaded options$/';
public const string TELEPORTED = '/^(?<admin>.+?) teleported (?<target>.+?) to (?<x>\d+),(?<y>\d+),(?<z>-?\d+)$/';
}
/**
* Entry-anchored variants for analyser use. PatternAnalyser passes the
* full Entry text (including the [time] prefix) to preg_match_all, so
* these include the timestamp prefix and are anchored at start/end of
* the line. The body-only constants above are kept for direct-message
* matching.
*/
public const string ADDED_ITEM_ENTRY = '/^\[\d{2}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}\] (?<admin>.+?) added item (?<item>Base\.\S+) in (?<target>.+?)\'s inventory\.?$/';