Hi,
So I'm trying to get the title of of the enchantment.
Code:
But whatever I try just gives me something like this:
OR
OR
And more random things that I don't want.
Everything that I have seen online has not worked for paper.
Any idea what I need to do:
So I'm trying to get the title of of the enchantment.
Code:
Java:
public void onPlayerAchievement(PlayerAdvancementDoneEvent event) throws Exception{
String advancementName = event.getAdvancement().toString();
//Do some things with advancementName...
}
But whatever I try just gives me something like this:
Code:
TranslatableComponentImpl{key="chat.square_brackets", args=[TranslatableComponentImpl{key="advancements.adventure.adventuring_time.title", args=[], style=StyleImpl{obfuscated=not_set, bold=not_set, strikethrough=not_set, underlined=not_set, italic=not_set, color=null, clickEvent=null, hoverEvent=HoverEvent{action=show_text, value=TranslatableComponentImpl{key="advancements.adventure.adventuring_time.title", args=[], style=StyleImpl{obfuscated=not_set, bold=not_set, strikethrough=not_set, underlined=not_set, italic=not_set, color=NamedTextColor{name="dark_purple", value="#aa00aa"}, clickEvent=null, hoverEvent=null, insertion=null, font=null}, children=[TextComponentImpl{content="\n", style=StyleImpl{obfuscated=not_set, bold=not_set, strikethrough=not_set, underlined=not_set, italic=not_set, color=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}, children=[]}, TranslatableComponentImpl{key="advancements.adventure.adventuring_time.description", args=[], style=StyleImpl{obfuscated=not_set, bold=not_set, strikethrough=not_set, underlined=not_set, italic=not_set, color=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}, children=[]}]}}, insertion=null, font=null}, children=[]}], style=StyleImpl{obfuscated=not_set, bold=not_set, strikethrough=not_set, underlined=not_set, italic=not_set, color=NamedTextColor{name="dark_purple", value="#aa00aa"}, clickEvent=null, hoverEvent=null, insertion=null, font=null}, children=[]}
Code:
Code:
PaperAdvancementDisplay[[email protected]]
And more random things that I don't want.
Everything that I have seen online has not worked for paper.
Any idea what I need to do:
- Version Output
- Paper version git-Paper-307 (MC: 1.19.2)
Last edited: