Possible workaround with #3330

Filters away non-public event handlers
This commit is contained in:
PEMapModder 2015-07-30 09:21:35 +08:00
parent 0380e9009a
commit 9bbaf5d00d

View File

@ -701,7 +701,7 @@ class PluginManager{
}
$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;