Change variable $dwoo to $core. Inside plugins, it's now accessible using $this->core