Hi my plugin gets this error can someone tell me how to fix it? PHP: 07.10 02:54:34 [Server] Server thread/CRITICAL Could not pass event 'pocketmine\event\player\PlayerJoinEvent' to 'DIErespawnCR v0.1': Undefined property: DIErespawnCR\Main::$level on DIErespawnCR\Main07.10 02:54:34 [Server] Server thread/CRITICAL ErrorException: "Undefined property: DIErespawnCR\Main::$level" (EXCEPTION) in "DIErespawnCR_v0.1.phar/src/DIErespawnCR/Main" at line 2207.10 02:54:34 [Server] Server thread/DEBUG #0 DIErespawnCR_v0.1.phar/src/DIErespawnCR/Main(22): pocketmine\error_handler(integer 8, string Undefined property: DIErespawnCR\Main::$level, string phar:///plugins/DIErespawnCR_v0.1.phar/src/DIErespawnCR/Main.php, integer 22, array Array())07.10 02:54:34 [Server] Server thread/DEBUG #1 src/pocketmine/plugin/MethodEventExecutor(38): DIErespawnCR\Main->onSpawn(pocketmine\event\player\PlayerJoinEvent object)07.10 02:54:34 [Server] Server thread/DEBUG #2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(DIErespawnCR\Main object, pocketmine\event\player\PlayerJoinEvent object)07.10 02:54:34 [Server] Server thread/DEBUG #3 src/pocketmine/plugin/PluginManager(721): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerJoinEvent object)07.10 02:54:34 [Server] Server thread/DEBUG #4 src/pocketmine/Player(951): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\player\PlayerJoinEvent object)07.10 02:54:34 [Server] Server thread/DEBUG #5 src/pocketmine/Player(891): pocketmine\Player->doFirstSpawn()07.10 02:54:34 [Server] Server thread/DEBUG #6 src/pocketmine/level/Level(2387): pocketmine\Player->sendChunk(integer 13, integer 19, pocketmine\network\mcpe\protocol\BatchPacket object)07.10 02:54:34 [Server] Server thread/DEBUG #7 src/pocketmine/level/Level(2428): pocketmine\level\Level->sendChunkFromCache(integer 13, integer 19)07.10 02:54:34 [Server] Server thread/DEBUG #8 src/pocketmine/level/format/io/ChunkRequestTask(91): pocketmine\level\Level->chunkRequestCallback(integer 13, integer 19, pocketmine\network\mcpe\protocol\BatchPacket object)07.10 02:54:34 [Server] Server thread/DEBUG #9 src/pocketmine/scheduler/AsyncPool(164): pocketmine\level\format\io\ChunkRequestTask->onCompletion(pocketmine\Server object)07.10 02:54:34 [Server] Server thread/DEBUG #10 src/pocketmine/scheduler/ServerScheduler(342): pocketmine\scheduler\AsyncPool->collectTasks()07.10 02:54:34 [Server] Server thread/DEBUG #11 src/pocketmine/Server(2512): pocketmine\scheduler\ServerScheduler->mainThreadHeartbeat(integer 1211)07.10 02:54:34 [Server] Server thread/DEBUG #12 src/pocketmine/Server(2257): pocketmine\Server->tick()07.10 02:54:34 [Server] Server thread/DEBUG #13 src/pocketmine/Server(2136): pocketmine\Server->tickProcessor()07.10 02:54:34 [Server] Server thread/DEBUG #14 src/pocketmine/Server(1718): pocketmine\Server->start()07.10 02:54:34 [Server] Server thread/DEBUG #15 src/pocketmine/PocketMine(556): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///custom-php7.2.phar/, string /, string /plugins/) My code is this: PHP: <?phpnamespace DIErespawnCR;use pocketmine\plugin\PluginBase;use pocketmine\event\Listener;use pocketmine\event\player\PlayerJoinEvent;use pocketmine\math\Vector3;class Main extends PluginBase implements Listener{ public function onEnable(){ $this->getServer()->getPluginManager()->registerEvents($this, $this); $this->getServer()->getLogger()->info("DIErespawnCR Enabled!"); } public function onDisable(){ $this->getServer()->getLogger()->info("DIErespawnCR Disabled!"); } public function onSpawn(PlayerJoinEvent $event){ $player = $event->getPlayer(); $player->teleport($this->level->getSpawn()); }}