Hello I was wondering how do I send a message to the level which $entity is in thanks :3 ?????????: PHP: $level = $entity->getLevel()->getPlayersInLevel(); $level->sendMessage($entity->getNameTag() . " §ewas killed by " . $damager->getNameTag()); This gives me error: Code: [18:11:02] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\entity\EntityDamageByEntityEvent' to 'DeathView v0.0.2': Call to undefined method pocketmine\level\Level::getPlayersInLevel() on TheDiamondYT\DeathView\Loader [18:11:02] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\level\Level::getPlayersInLevel()" (EXCEPTION) in "/plugins/DeathView-master/src/TheDiamondYT/DeathView/Loader" at line 67
PHP: foreach($entity->getLevel()->getEntities() as $ent){ if($ent instanceof Player){ $ent->sendMessage("write"); }}