Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3331 from PEMapModder/patch-5
Browse files Browse the repository at this point in the history
Fixes #3330
  • Loading branch information
msjyoo committed Aug 8, 2015
2 parents 0380e90 + 9bbaf5d commit d729961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pocketmine/plugin/PluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d729961

Please sign in to comment.