diff --git a/src/PocketMine/plugin/PluginManager.php b/src/PocketMine/plugin/PluginManager.php index 327a3c4aa..d2f76c5eb 100644 --- a/src/PocketMine/plugin/PluginManager.php +++ b/src/PocketMine/plugin/PluginManager.php @@ -619,13 +619,13 @@ class PluginManager{ if(!$method->isStatic()){ $priority = EventPriority::NORMAL; $ignoreCancelled = false; - if(preg_match("/^[\t ]*\\* @priority ([a-zA-Z]{1,})$/m", (string) $method->getDocComment(), $matches) > 0){ + if(preg_match("/^[\t ]*\\* @priority[\t ]{1,}([a-zA-Z]{1,})$/m", (string) $method->getDocComment(), $matches) > 0){ $matches[1] = strtoupper($matches[1]); if(defined("PocketMine\\Event\\EventPriority::".$matches[1])){ $priority = constant("PocketMine\\Event\\EventPriority::".$matches[1]); } } - if(preg_match("/^[\t ]*\\* @ignoreCancelled ([a-zA-Z]{1,})$/m", (string) $method->getDocComment(), $matches) > 0){ + if(preg_match("/^[\t ]*\\* @ignoreCancelled[\t ]{1,}([a-zA-Z]{1,})$/m", (string) $method->getDocComment(), $matches) > 0){ $matches[1] = strtolower($matches[1]); if($matches[1] === "false"){ $ignoreCancelled = false;