diff --git a/src/pocketmine/plugin/PluginManager.php b/src/pocketmine/plugin/PluginManager.php index c01cc6aaf..c01bee4c7 100644 --- a/src/pocketmine/plugin/PluginManager.php +++ b/src/pocketmine/plugin/PluginManager.php @@ -701,7 +701,7 @@ public function registerEvents(Listener $listener, Plugin $plugin){ } $reflection = new \ReflectionClass(get_class($listener)); - foreach($reflection->getMethods() as $method){ + foreach($reflection->getMethods(\ReflectionMethod::IS_PUBLIC) as $method){ if(!$method->isStatic()){ $priority = EventPriority::NORMAL; $ignoreCancelled = false;