Code:
all.playSound(p.getLocation(),Sound.DONKEY_IDLE,3,2);
all.playSound(p.getLocation(),Sound.DONKEY_IDLE,3,2);
player.playEffect(player.getLocation(), Effect.RECORD_PLAY, Material.RECORD_3.getId());
//To play any of the 12 records found in Minecraft use their material ID's
//Use Material.GREEN_RECORD.getId(), Material.GOLD_RECORD.getId() or Material.RECORD_(# between 3 and 12).getId()