From d15fc81f9f09d1580af691ca4341dc96ccbe0f88 Mon Sep 17 00:00:00 2001 From: indifferentketchup Date: Thu, 30 Apr 2026 21:47:14 +0000 Subject: [PATCH] Add AdminTeleportedInformation insight --- .../AdminTeleportedInformation.php | 28 +++++++++++++++ src/Pattern/ProjectZomboid/AdminPattern.php | 2 ++ .../AdminTeleportedInformationTest.php | 34 +++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 src/Analysis/ProjectZomboid/AdminTeleportedInformation.php create mode 100644 test/tests/Games/ProjectZomboid/Analysis/AdminTeleportedInformationTest.php diff --git a/src/Analysis/ProjectZomboid/AdminTeleportedInformation.php b/src/Analysis/ProjectZomboid/AdminTeleportedInformation.php new file mode 100644 index 0000000..64b9bd0 --- /dev/null +++ b/src/Analysis/ProjectZomboid/AdminTeleportedInformation.php @@ -0,0 +1,28 @@ +setLabel('Admin teleported'); + $this->setValue(sprintf( + '%s teleported %s to %s,%s,%s', + $matches['admin'], + $matches['target'], + $matches['x'], + $matches['y'], + $matches['z'] + )); + } +} diff --git a/src/Pattern/ProjectZomboid/AdminPattern.php b/src/Pattern/ProjectZomboid/AdminPattern.php index 3f46f77..2813c72 100644 --- a/src/Pattern/ProjectZomboid/AdminPattern.php +++ b/src/Pattern/ProjectZomboid/AdminPattern.php @@ -42,4 +42,6 @@ class AdminPattern public const string CHANGED_OPTION_ENTRY = '/^\[\d{2}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}\] (?.+?) changed option (?