mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Revert "Be more concise in event handler timing names"
This reverts commit 9db7e5f0ca984f17d6a8218d1c74b9be1c605863.
This commit is contained in:
parent
199ef7401f
commit
a6a360d179
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user