From 085e132846315cc50e03c1e60b87833798e75f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melaine=20G=C3=A9rard?= Date: Thu, 28 Nov 2024 13:57:20 +0100 Subject: [PATCH] :sparkles: Fix XP --- .env.example | 1 + .../gachamelia/commands/personnage/FichePersoCommand.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 92c7f3f..20dd552 100644 --- a/.env.example +++ b/.env.example @@ -7,5 +7,6 @@ DB_PASSWORD=gachamelia WELCOME_CHANNEL= STAFF_ROLE= +XP_EMOJI="<:id_6_xp:1311673719613292595>" APP_VERSION=0.0.1 APP_DESCRIPTION="J'ai posé un pied à terre." \ No newline at end of file diff --git a/src/main/java/org/camelia/studio/gachamelia/commands/personnage/FichePersoCommand.java b/src/main/java/org/camelia/studio/gachamelia/commands/personnage/FichePersoCommand.java index 39b9065..957d89a 100644 --- a/src/main/java/org/camelia/studio/gachamelia/commands/personnage/FichePersoCommand.java +++ b/src/main/java/org/camelia/studio/gachamelia/commands/personnage/FichePersoCommand.java @@ -13,6 +13,7 @@ import org.camelia.studio.gachamelia.models.User; import org.camelia.studio.gachamelia.models.UserStat; import org.camelia.studio.gachamelia.repositories.StatRepository; import org.camelia.studio.gachamelia.services.UserService; +import org.camelia.studio.gachamelia.utils.Configuration; import org.camelia.studio.gachamelia.utils.EmbedUtils; import java.awt.*; @@ -63,7 +64,7 @@ public class FichePersoCommand implements ISlashCommand { - Rareté : **%s** - Rôle : **%s** - Éléments : *%s* - - Xp : **%d** + - %s : **%d** - Emblème : **%s** __Statistiques de combat__ : """.formatted( @@ -71,6 +72,7 @@ public class FichePersoCommand implements ISlashCommand { user.getRank().getName(), user.getRole().getName(), user.getElements().stream().map(Element::getName).reduce("", (a, b) -> a + ", " + b).substring(2), + Configuration.getInstance().getDotenv().get("XP_EMOJI", "XP"), 0, "Ø" ));