1.15.2 Getting name of advancement?

Discussion in 'Spigot Plugin Development' started by jakeob22, Mar 28, 2020.

  1. I'm trying to grab the name of player's advancements as they get them. For example, I need to get "Acquire Hardware" when somebody smelts an iron ingot. I'm currently using a PlayerAdvancementDoneEvent listener. I tried using event.getAdvancement().getKey().getKey() and event.getAdvancement().getKey().toString() and it's giving me things like "recipes/building_blocks/oak_planks". It seems like it's telling me the recipes that are being unlocked by the advancement but not the name itself. Anybody know if it's possible to grab?
     
  2. You will never get the name of the advancement since the names are based on the client’s language setting.
     
    • Like Like x 1
  3. Figured something like this might be the case. I could always use the recipes unlocked as a unique identifier though, right? Is there a list somewhere of the recipes unlocked from each advancement and their namespaces? I wasn't able to find it.