aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/mayaqq/ygasi/gui/ExtraGui.java
diff options
context:
space:
mode:
authorMaximusbarcz <maxim.baranek@gmail.com>2023-01-07 20:49:03 +0100
committerMaximusbarcz <maxim.baranek@gmail.com>2023-01-07 20:49:03 +0100
commitab1ddc8e008ed93392ea3918da1d669dd1b4822c (patch)
tree433a63693e274cbe941f2b20481bf102c10807d4 /src/main/java/dev/mayaqq/ygasi/gui/ExtraGui.java
parent399d370aacfe3ba1aa6b400dd70ededa1014eb86 (diff)
downloadygasi-ab1ddc8e008ed93392ea3918da1d669dd1b4822c.tar.gz
ygasi-ab1ddc8e008ed93392ea3918da1d669dd1b4822c.tar.bz2
ygasi-ab1ddc8e008ed93392ea3918da1d669dd1b4822c.zip
Added even more translations!
Diffstat (limited to 'src/main/java/dev/mayaqq/ygasi/gui/ExtraGui.java')
-rw-r--r--src/main/java/dev/mayaqq/ygasi/gui/ExtraGui.java5
1 files changed, 3 insertions, 2 deletions
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()