29 lines
812 B
PHP
29 lines
812 B
PHP
<?php
|
|
|
|
namespace IndifferentKetchup\Codex\Analysis\ProjectZomboid;
|
|
|
|
use IndifferentKetchup\Codex\Analysis\Information;
|
|
use IndifferentKetchup\Codex\Analysis\PatternInsightInterface;
|
|
use IndifferentKetchup\Codex\Pattern\ProjectZomboid\AdminPattern;
|
|
|
|
class AdminTeleportedInformation extends Information implements PatternInsightInterface
|
|
{
|
|
public static function getPatterns(): array
|
|
{
|
|
return [AdminPattern::TELEPORTED_ENTRY];
|
|
}
|
|
|
|
public function setMatches(array $matches, mixed $patternKey): void
|
|
{
|
|
$this->setLabel('Admin teleported');
|
|
$this->setValue(sprintf(
|
|
'%s teleported %s to %s,%s,%s',
|
|
$matches['admin'],
|
|
$matches['target'],
|
|
$matches['x'],
|
|
$matches['y'],
|
|
$matches['z']
|
|
));
|
|
}
|
|
}
|