From ab1ddc8e008ed93392ea3918da1d669dd1b4822c Mon Sep 17 00:00:00 2001 From: Maximusbarcz Date: Sat, 7 Jan 2023 20:49:03 +0100 Subject: Added even more translations! --- src/main/java/dev/mayaqq/ygasi/gui/ExtraGui.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/dev/mayaqq/ygasi/gui/ExtraGui.java') diff --git a/src/main/java/dev/mayaqq/ygasi/gui/ExtraGui.java b/src/main/java/dev/mayaqq/ygasi/gui/ExtraGui.java index 04cfc98..268535b 100644 --- a/src/main/java/dev/mayaqq/ygasi/gui/ExtraGui.java +++ b/src/main/java/dev/mayaqq/ygasi/gui/ExtraGui.java @@ -12,14 +12,15 @@ import static dev.mayaqq.ygasi.registry.StatRegistry.SKILL_POINTS; public class ExtraGui { public static void gui(ServerPlayerEntity player) { + String title = Text.translatable("gui.ygasi.branch.extra.title").getString() + " " + Text.translatable("gui.ygasi.branch.title", player.getStatHandler().getStat(Stats.CUSTOM.getOrCreateStat(SKILL_POINTS))).getString(); try { if (!YgasiUtils.getAdvancementProgress(player, "minecraft", "ygasi/extra")) { - player.sendMessage(Text.of("§cYou have not unlocked this branch yet!"), false); + player.sendMessage(Text.translatable("gui.ygasi.branches.fail"), false); BranchGui.gui(player); } else { SkillGui gui = new SkillGui(ScreenHandlerType.GENERIC_9X3, player, false) {}; - gui.setTitle(Text.of( "§9§lExtra " + "§3Skill Points: " + player.getStatHandler().getStat(Stats.CUSTOM.getOrCreateStat(SKILL_POINTS)))); + gui.setTitle(Text.of( title)); for (int x = 0; x <= 26; x++) { gui.setSlot(x, new GuiElementBuilder() -- cgit