diff options
author | Maximusbarcz <maxim.baranek@gmail.com> | 2023-01-07 20:49:03 +0100 |
---|---|---|
committer | Maximusbarcz <maxim.baranek@gmail.com> | 2023-01-07 20:49:03 +0100 |
commit | ab1ddc8e008ed93392ea3918da1d669dd1b4822c (patch) | |
tree | 433a63693e274cbe941f2b20481bf102c10807d4 /src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java | |
parent | 399d370aacfe3ba1aa6b400dd70ededa1014eb86 (diff) | |
download | ygasi-ab1ddc8e008ed93392ea3918da1d669dd1b4822c.tar.gz ygasi-ab1ddc8e008ed93392ea3918da1d669dd1b4822c.tar.bz2 ygasi-ab1ddc8e008ed93392ea3918da1d669dd1b4822c.zip |
Added even more translations!
Diffstat (limited to 'src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java')
-rw-r--r-- | src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java b/src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java index 95c8206..a976929 100644 --- a/src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java +++ b/src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java @@ -2,7 +2,6 @@ package dev.mayaqq.ygasi.gui; import dev.mayaqq.ygasi.util.YgasiUtils; import eu.pb4.sgui.api.elements.GuiElementBuilder; -import net.minecraft.advancement.Advancement; import net.minecraft.item.Items; import net.minecraft.screen.ScreenHandlerType; import net.minecraft.server.network.ServerPlayerEntity; @@ -29,14 +28,14 @@ public class ResetGui { gui.setSlot(12, new GuiElementBuilder() .setItem(Items.GREEN_CONCRETE) - .setName(Text.translatable("gui.ygasi.reset.confirm")) + .setName(Text.translatable("gui.ygasi.reset.confirm.title")) .addLoreLine(Text.translatable("gui.ygasi.reset.confirm.lore")) .setCallback((index, clickType, actionType) -> reset(player)) ); gui.setSlot(14, new GuiElementBuilder() .setItem(Items.RED_CONCRETE) - .setName(Text.translatable("gui.ygasi.reset.deny")) + .setName(Text.translatable("gui.ygasi.reset.deny.title")) .addLoreLine(Text.translatable("gui.ygasi.reset.deny.lore")) .setCallback((index, clickType, actionType) -> BranchGui.gui(player)) ); @@ -50,11 +49,11 @@ public class ResetGui { player.experienceLevel -= 10; player.closeHandledScreen(); YgasiUtils.revokeAllAdvancements(player, "minecraft", "ygasi/"); - player.sendMessage(Text.translatable("gui.ygasi.branch.reset.main"), false); + player.sendMessage(Text.translatable("gui.ygasi.reset.success"), false); player.getStatHandler().setStat(player, Stats.CUSTOM.getOrCreateStat(SKILL_POINTS), player.getStatHandler().getStat(Stats.CUSTOM.getOrCreateStat(SKILL_POINTS_TOTAL))); BranchGui.gui(player); } else { - player.sendMessage(Text.translatable("gui.ygasi.branch.reset.no.xp"), false); + player.sendMessage(Text.translatable("gui.ygasi.reset.fail"), false); player.closeHandledScreen(); } } |