diff --git a/src/pocketmine/event/plugin/PluginEvent.php b/src/pocketmine/event/plugin/PluginEvent.php index 066d4f8e6..ec8b18e37 100644 --- a/src/pocketmine/event/plugin/PluginEvent.php +++ b/src/pocketmine/event/plugin/PluginEvent.php @@ -33,6 +33,10 @@ abstract class PluginEvent extends Event{ /** @var Plugin */ private $plugin; + public function __construct(Plugin $plugin){ + $this->plugin = $plugin; + } + /** * @return Plugin */