PHP: $player->getInventory()->getItemInHand()->getId()->getName(); it says "Call to a member function getName() on int" (EXCEPTION)