public function onInteract(PlayerInteractEvent $event){ $player = $event->getPlayer(); $barra = $event->getItem(); $block = $event->getBlock(); if($event->getItem()->getID() == 101){ $player->sendMessage("§eItem clicado"); $player->teleport($event->getLevel()->getName() == "LobbyA"); $player->sendMessage("§eTeleportado para o mundo §cLobbyA"); } }