Revert "Be more concise in event handler timing names"

This reverts commit 9db7e5f0ca984f17d6a8218d1c74b9be1c605863.
This commit is contained in:
Dylan K. Taylor 2023-03-31 21:51:00 +01:00
parent 199ef7401f
commit a6a360d179
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -63,10 +63,7 @@ use function realpath;
use function shuffle;
use function sprintf;
use function str_contains;
use function str_starts_with;
use function strlen;
use function strtolower;
use function substr;
/**
* Manages all the plugins
@ -654,11 +651,6 @@ class PluginManager{
throw new PluginException("Plugin attempted to register event handler " . $handlerName . "() to event " . $event . " while not enabled");
}
$prefix = $plugin->getDescription()->getSrcNamespacePrefix();
if(str_starts_with($handlerName, $prefix) && $prefix !== ""){
$handlerName = substr($handlerName, strlen($prefix) + 1);
}
$timings = new TimingsHandler($handlerName . "(" . (new \ReflectionClass($event))->getShortName() . ")", group: $plugin->getDescription()->getFullName());
$registeredListener = new RegisteredListener($handler, $priority, $plugin, $handleCancelled, $timings);