Added check to ensure that the right packet is being read. Also changed the default port to the minecraft standard.