And how I can access the variable? How @Alde. already said: I think the packet.getName() and textPacket.name are being confused here