Get display name of advancement

Discussion in 'Plugin Development' started by Programie, Sep 24, 2019.

  1. Offline

    Programie

    Hi,

    is there any way to get the (human readable) display name of an advancement?

    I know it is possible to get the internal name using Advancement.getKey().getKey(). But this results in a string like "nether/find_fortress" instead of my actually wanted display name "A Terrible Fortress".

    Is there a map to translate the internal name to their actual English display name or do I have to do this on my own?
     
    Last edited: Sep 24, 2019
  2. Offline

    KarimAKL

    @Programie You probably have to do this on your own.
     
  3. Offline

    Programie

    OK, I did it using a simple map from the internal name to their actual English display name stored in a YAML file.
     

Share This Page