mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +00:00
Merge branch 'release/3.1'
This commit is contained in:
commit
33ad4de981
@ -782,7 +782,7 @@ class PluginManager{
|
|||||||
|
|
||||||
$reflection = new \ReflectionClass(get_class($listener));
|
$reflection = new \ReflectionClass(get_class($listener));
|
||||||
foreach($reflection->getMethods(\ReflectionMethod::IS_PUBLIC) as $method){
|
foreach($reflection->getMethods(\ReflectionMethod::IS_PUBLIC) as $method){
|
||||||
if(!$method->isStatic()){
|
if(!$method->isStatic() and $method->getDeclaringClass()->implementsInterface(Listener::class)){
|
||||||
$tags = Utils::parseDocComment((string) $method->getDocComment());
|
$tags = Utils::parseDocComment((string) $method->getDocComment());
|
||||||
if(isset($tags["notHandler"])){
|
if(isset($tags["notHandler"])){
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user