From 06f970b1bdb370afd38d321ec6225f47b6cf3d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Kosman?= Date: Thu, 22 Aug 2024 22:45:00 +0200 Subject: feat: support translation to enable configuration of all mod strings. --- src/client/resources/assets/molehunt/lang/en_us.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/client/resources/assets/molehunt/lang/en_us.json (limited to 'src/client') diff --git a/src/client/resources/assets/molehunt/lang/en_us.json b/src/client/resources/assets/molehunt/lang/en_us.json new file mode 100644 index 0000000..d68fd0e --- /dev/null +++ b/src/client/resources/assets/molehunt/lang/en_us.json @@ -0,0 +1,15 @@ +{ + "commands.molehunt.stop.failed": "The Molehunt game has not been started yet.", + "commands.molehunt.timer.show": "Showing Molehunt timer.", + "commands.molehunt.timer.hide": "Hiding Molehunt timer.", + "commands.molehunt.moles.list": "List of moles:", + "commands.molehunt.stop.success": "The Molehunt game has been stopped.", + "molehunt.game.end.suspense.title": "And the winners are...", + "molehunt.game.end.winners.moles.title": "§cThe Moles!", + "molehunt.game.end.winners.survivors.title": "§aThe survivors!", + "molehunt.game.end.winners.subtitle": "The moles were", + "molehunt.game.start.suspense": "You are...", + "molehunt.game.start.mole.title": "§cThe Mole!", + "molehunt.game.start.mole.subtitle": "Get the list of moles with §6/molehunt moles", + "molehunt.game.start.survivor": "§aNot the Mole!" +} \ No newline at end of file -- cgit v1.2.3 From 67e912c50efd23228932b011676ec128aedf58bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Kosman?= Date: Fri, 23 Aug 2024 12:05:59 +0200 Subject: style: add more colors to text --- src/client/resources/assets/molehunt/lang/en_us.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/client') diff --git a/src/client/resources/assets/molehunt/lang/en_us.json b/src/client/resources/assets/molehunt/lang/en_us.json index d68fd0e..63ac06d 100644 --- a/src/client/resources/assets/molehunt/lang/en_us.json +++ b/src/client/resources/assets/molehunt/lang/en_us.json @@ -4,12 +4,12 @@ "commands.molehunt.timer.hide": "Hiding Molehunt timer.", "commands.molehunt.moles.list": "List of moles:", "commands.molehunt.stop.success": "The Molehunt game has been stopped.", - "molehunt.game.end.suspense.title": "And the winners are...", + "molehunt.game.end.suspense.title": "§eAnd the winners are...", "molehunt.game.end.winners.moles.title": "§cThe Moles!", - "molehunt.game.end.winners.survivors.title": "§aThe survivors!", - "molehunt.game.end.winners.subtitle": "The moles were", - "molehunt.game.start.suspense": "You are...", + "molehunt.game.end.winners.survivors.title": "§aNot the Moles!", + "molehunt.game.end.winners.subtitle": "§6The moles were", + "molehunt.game.start.suspense": "§eYou are...", "molehunt.game.start.mole.title": "§cThe Mole!", - "molehunt.game.start.mole.subtitle": "Get the list of moles with §6/molehunt moles", + "molehunt.game.start.mole.subtitle": "§eGet the list of moles with §6/molehunt moles", "molehunt.game.start.survivor": "§aNot the Mole!" } \ No newline at end of file -- cgit v1.2.3 From 7f6043a230b83cff57126625cd8b19063c85a599 Mon Sep 17 00:00:00 2001 From: anhgelus Date: Fri, 23 Aug 2024 13:41:22 +0000 Subject: feat(config): packet sending config to client --- .../anhgelus/molehunt/client/MolehuntClient.java | 35 ++++++++++++++++------ .../anhgelus/molehunt/client/mixin/NoSkin.java | 4 +-- 2 files changed, 28 insertions(+), 11 deletions(-) (limited to 'src/client') diff --git a/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java b/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java index e6de219..5f6b735 100644 --- a/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java +++ b/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java @@ -1,20 +1,37 @@ package world.anhgelus.molehunt.client; -import com.mojang.authlib.GameProfile; import net.fabricmc.api.ClientModInitializer; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.util.UUID; +import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking; +import world.anhgelus.molehunt.config.ConfigPayload; public class MolehuntClient implements ClientModInitializer { - public static final String MOD_ID = "molehunt"; - public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID); - - public final static GameProfile ANONYMOUS_PROFILE = new GameProfile(UUID.fromString("015f3266-4e0a-412e-9b80-1ca76af79453"), "Molehunt"); + private static boolean SHOW_SKINS = false; + private static boolean SHOW_NAMETAGS = false; + private static boolean SHOW_TAB = false; @Override public void onInitializeClient() { + ClientPlayNetworking.registerGlobalReceiver(ConfigPayload.ID, (payload, context) -> { + try (final var client = context.client()) { + client.execute(() -> { + SHOW_SKINS = payload.showSkins(); + SHOW_NAMETAGS = payload.showNametag(); + SHOW_TAB = payload.showNametag(); + }); + } + }); + } + + public static boolean showSkins() { + return SHOW_SKINS; + } + + public static boolean showNameTags() { + return SHOW_NAMETAGS; + } + + public static boolean showTab() { + return SHOW_TAB; } } diff --git a/src/client/java/world/anhgelus/molehunt/client/mixin/NoSkin.java b/src/client/java/world/anhgelus/molehunt/client/mixin/NoSkin.java index edbfd15..425ded7 100644 --- a/src/client/java/world/anhgelus/molehunt/client/mixin/NoSkin.java +++ b/src/client/java/world/anhgelus/molehunt/client/mixin/NoSkin.java @@ -7,14 +7,14 @@ import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; -import world.anhgelus.molehunt.client.MolehuntClient; +import world.anhgelus.molehunt.Molehunt; @Mixin(AbstractClientPlayerEntity.class) public class NoSkin { @Inject(at = @At("HEAD"), method = "getSkinTextures", cancellable = true) public void getSkin(CallbackInfoReturnable cir) { cir.setReturnValue(new SkinTextures( - Identifier.of(MolehuntClient.MOD_ID, "textures/skin.png"), + Identifier.of(Molehunt.MOD_ID, "textures/skin.png"), null, null, null, -- cgit v1.2.3 From 7fd5caf38a9b3ef71d94d9085ee92b47c3c449e3 Mon Sep 17 00:00:00 2001 From: anhgelus Date: Fri, 23 Aug 2024 13:42:56 +0000 Subject: feat(config): disable mixins according to config's packet --- .../world/anhgelus/molehunt/client/mixin/NoNametags.java | 3 ++- .../anhgelus/molehunt/client/mixin/NoPlayerListHud.java | 2 ++ .../java/world/anhgelus/molehunt/client/mixin/NoSkin.java | 12 +++++++----- 3 files changed, 11 insertions(+), 6 deletions(-) (limited to 'src/client') diff --git a/src/client/java/world/anhgelus/molehunt/client/mixin/NoNametags.java b/src/client/java/world/anhgelus/molehunt/client/mixin/NoNametags.java index 7996c49..3482abb 100644 --- a/src/client/java/world/anhgelus/molehunt/client/mixin/NoNametags.java +++ b/src/client/java/world/anhgelus/molehunt/client/mixin/NoNametags.java @@ -9,12 +9,13 @@ import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; +import world.anhgelus.molehunt.client.MolehuntClient; @Mixin(EntityRenderer.class) public class NoNametags { @Inject(at = @At("HEAD"), method = "render", cancellable = true) private void renderLabelOrNot(T entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, CallbackInfo ci) { - if (!(entity instanceof PlayerEntity)) return; + if (!(entity instanceof PlayerEntity) || MolehuntClient.showNameTags()) return; ci.cancel(); } } \ No newline at end of file diff --git a/src/client/java/world/anhgelus/molehunt/client/mixin/NoPlayerListHud.java b/src/client/java/world/anhgelus/molehunt/client/mixin/NoPlayerListHud.java index 8ef33fd..00308ea 100644 --- a/src/client/java/world/anhgelus/molehunt/client/mixin/NoPlayerListHud.java +++ b/src/client/java/world/anhgelus/molehunt/client/mixin/NoPlayerListHud.java @@ -5,11 +5,13 @@ import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; +import world.anhgelus.molehunt.client.MolehuntClient; @Mixin(PlayerListHud.class) public class NoPlayerListHud { @Inject(at = @At("HEAD"), method = "render", cancellable = true) public void render(CallbackInfo ci) { + if (MolehuntClient.showTab()) return; ci.cancel(); } } diff --git a/src/client/java/world/anhgelus/molehunt/client/mixin/NoSkin.java b/src/client/java/world/anhgelus/molehunt/client/mixin/NoSkin.java index 425ded7..775d789 100644 --- a/src/client/java/world/anhgelus/molehunt/client/mixin/NoSkin.java +++ b/src/client/java/world/anhgelus/molehunt/client/mixin/NoSkin.java @@ -8,17 +8,19 @@ import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; import world.anhgelus.molehunt.Molehunt; +import world.anhgelus.molehunt.client.MolehuntClient; @Mixin(AbstractClientPlayerEntity.class) public class NoSkin { @Inject(at = @At("HEAD"), method = "getSkinTextures", cancellable = true) public void getSkin(CallbackInfoReturnable cir) { + if (MolehuntClient.showSkins()) return; cir.setReturnValue(new SkinTextures( - Identifier.of(Molehunt.MOD_ID, "textures/skin.png"), - null, - null, - null, - SkinTextures.Model.WIDE, true) + Identifier.of(Molehunt.MOD_ID, "textures/skin.png"), + null, + null, + null, + SkinTextures.Model.WIDE, true) ); } } -- cgit v1.2.3 From a39de9ad78f0e3b4b03453dc3f5da0b649f69288 Mon Sep 17 00:00:00 2001 From: anhgelus Date: Fri, 23 Aug 2024 13:49:13 +0000 Subject: feat(config): config for nametag, skins and tab --- src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java b/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java index 5f6b735..7770a1b 100644 --- a/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java +++ b/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java @@ -16,8 +16,8 @@ public class MolehuntClient implements ClientModInitializer { try (final var client = context.client()) { client.execute(() -> { SHOW_SKINS = payload.showSkins(); - SHOW_NAMETAGS = payload.showNametag(); - SHOW_TAB = payload.showNametag(); + SHOW_NAMETAGS = payload.showNametags(); + SHOW_TAB = payload.showTab(); }); } }); -- cgit v1.2.3 From 2e87ea59da4e7a3a56f24641c22aeac50cc5b607 Mon Sep 17 00:00:00 2001 From: anhgelus Date: Fri, 23 Aug 2024 14:22:41 +0000 Subject: fix(networking): crash while joining server --- .../java/world/anhgelus/molehunt/client/MolehuntClient.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/client') diff --git a/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java b/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java index 7770a1b..1f92573 100644 --- a/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java +++ b/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java @@ -13,13 +13,11 @@ public class MolehuntClient implements ClientModInitializer { @Override public void onInitializeClient() { ClientPlayNetworking.registerGlobalReceiver(ConfigPayload.ID, (payload, context) -> { - try (final var client = context.client()) { - client.execute(() -> { - SHOW_SKINS = payload.showSkins(); - SHOW_NAMETAGS = payload.showNametags(); - SHOW_TAB = payload.showTab(); - }); - } + context.client().execute(() -> { + SHOW_SKINS = payload.showSkins(); + SHOW_NAMETAGS = payload.showNametags(); + SHOW_TAB = payload.showTab(); + }); }); } -- cgit v1.2.3 From e3611b77c66d303d97528fa221553c1c1a44d1c6 Mon Sep 17 00:00:00 2001 From: anhgelus Date: Fri, 23 Aug 2024 18:22:14 +0000 Subject: feat(config): options are now gamerules --- src/client/resources/assets/molehunt/lang/en_us.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/resources/assets/molehunt/lang/en_us.json b/src/client/resources/assets/molehunt/lang/en_us.json index 63ac06d..33aef84 100644 --- a/src/client/resources/assets/molehunt/lang/en_us.json +++ b/src/client/resources/assets/molehunt/lang/en_us.json @@ -11,5 +11,11 @@ "molehunt.game.start.suspense": "§eYou are...", "molehunt.game.start.mole.title": "§cThe Mole!", "molehunt.game.start.mole.subtitle": "§eGet the list of moles with §6/molehunt moles", - "molehunt.game.start.survivor": "§aNot the Mole!" + "molehunt.game.start.survivor": "§aNot the Mole!", + "gamerule.gameDuration": "Duration of a game", + "gamerule.molePercentage": "Percentage of mole", + "gamerule.moleCount": "Number of mole", + "gamerule.showNametags": "Show players' nametag", + "gamerule.showTab": "Enable the tab", + "gamerule.showSkins": "Show players' skin" } \ No newline at end of file -- cgit v1.2.3 From 4256a3a18897f232b169ad2ebb48feea1a51ba1d Mon Sep 17 00:00:00 2001 From: anhgelus Date: Fri, 23 Aug 2024 18:28:43 +0000 Subject: feat(translation): french --- .../resources/assets/molehunt/lang/en_us.json | 6 +++--- .../resources/assets/molehunt/lang/fr_fr.json | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 src/client/resources/assets/molehunt/lang/fr_fr.json (limited to 'src/client') diff --git a/src/client/resources/assets/molehunt/lang/en_us.json b/src/client/resources/assets/molehunt/lang/en_us.json index 33aef84..73cbe97 100644 --- a/src/client/resources/assets/molehunt/lang/en_us.json +++ b/src/client/resources/assets/molehunt/lang/en_us.json @@ -7,14 +7,14 @@ "molehunt.game.end.suspense.title": "§eAnd the winners are...", "molehunt.game.end.winners.moles.title": "§cThe Moles!", "molehunt.game.end.winners.survivors.title": "§aNot the Moles!", - "molehunt.game.end.winners.subtitle": "§6The moles were", + "molehunt.game.end.winners.subtitle": "§6The Moles were", "molehunt.game.start.suspense": "§eYou are...", "molehunt.game.start.mole.title": "§cThe Mole!", "molehunt.game.start.mole.subtitle": "§eGet the list of moles with §6/molehunt moles", "molehunt.game.start.survivor": "§aNot the Mole!", "gamerule.gameDuration": "Duration of a game", - "gamerule.molePercentage": "Percentage of mole", - "gamerule.moleCount": "Number of mole", + "gamerule.molePercentage": "Percentage of Mole", + "gamerule.moleCount": "Number of Mole", "gamerule.showNametags": "Show players' nametag", "gamerule.showTab": "Enable the tab", "gamerule.showSkins": "Show players' skin" diff --git a/src/client/resources/assets/molehunt/lang/fr_fr.json b/src/client/resources/assets/molehunt/lang/fr_fr.json new file mode 100644 index 0000000..c5c87d4 --- /dev/null +++ b/src/client/resources/assets/molehunt/lang/fr_fr.json @@ -0,0 +1,21 @@ +{ + "commands.molehunt.stop.failed": "La partie de Molehunt n'a pas encore commencé.", + "commands.molehunt.timer.show": "Affiche le timer.", + "commands.molehunt.timer.hide": "Cache le timer.", + "commands.molehunt.moles.list": "Liste des taupes:", + "commands.molehunt.stop.success": "La partie de Molehunt a été stoppée.", + "molehunt.game.end.suspense.title": "§eEt les gagnants sont...", + "molehunt.game.end.winners.moles.title": "§cLes Taupes !", + "molehunt.game.end.winners.survivors.title": "§aPas les Taupes !", + "molehunt.game.end.winners.subtitle": "§Les Taupes sont", + "molehunt.game.start.suspense": "§eVous êtes...", + "molehunt.game.start.mole.title": "§cLa Taupe !", + "molehunt.game.start.mole.subtitle": "§eRécupérer la liste des taupes avec §6/molehunt moles", + "molehunt.game.start.survivor": "§aPas la Taupe!", + "gamerule.gameDuration": "Durée d'une partie", + "gamerule.molePercentage": "Pourcentage de Taupes", + "gamerule.moleCount": "Nombre de Taupes", + "gamerule.showNametags": "Affiche les nametags des joueurs", + "gamerule.showTab": "Active le tab", + "gamerule.showSkins": "Affiche les skins des joueurs" +} \ No newline at end of file -- cgit v1.2.3 From 32617ff3a18f966a445890d50c4b911817e162eb Mon Sep 17 00:00:00 2001 From: anhgelus Date: Fri, 23 Aug 2024 20:39:32 +0000 Subject: fix(command): no autocompletion for /molehunt moles --- src/client/resources/assets/molehunt/lang/en_us.json | 3 ++- src/client/resources/assets/molehunt/lang/fr_fr.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/resources/assets/molehunt/lang/en_us.json b/src/client/resources/assets/molehunt/lang/en_us.json index 73cbe97..fb5f1fa 100644 --- a/src/client/resources/assets/molehunt/lang/en_us.json +++ b/src/client/resources/assets/molehunt/lang/en_us.json @@ -3,11 +3,12 @@ "commands.molehunt.timer.show": "Showing Molehunt timer.", "commands.molehunt.timer.hide": "Hiding Molehunt timer.", "commands.molehunt.moles.list": "List of moles:", + "commands.molehunt.moles.list.deny": "You can't see the list of moles.", "commands.molehunt.stop.success": "The Molehunt game has been stopped.", "molehunt.game.end.suspense.title": "§eAnd the winners are...", "molehunt.game.end.winners.moles.title": "§cThe Moles!", "molehunt.game.end.winners.survivors.title": "§aNot the Moles!", - "molehunt.game.end.winners.subtitle": "§6The Moles were", + "molehunt.game.end.winners.subtitle": "§6The Moles were ", "molehunt.game.start.suspense": "§eYou are...", "molehunt.game.start.mole.title": "§cThe Mole!", "molehunt.game.start.mole.subtitle": "§eGet the list of moles with §6/molehunt moles", diff --git a/src/client/resources/assets/molehunt/lang/fr_fr.json b/src/client/resources/assets/molehunt/lang/fr_fr.json index c5c87d4..5a47c07 100644 --- a/src/client/resources/assets/molehunt/lang/fr_fr.json +++ b/src/client/resources/assets/molehunt/lang/fr_fr.json @@ -3,11 +3,12 @@ "commands.molehunt.timer.show": "Affiche le timer.", "commands.molehunt.timer.hide": "Cache le timer.", "commands.molehunt.moles.list": "Liste des taupes:", + "commands.molehunt.moles.list.deny": "Vous ne pouvez pas voir la liste des taupes.", "commands.molehunt.stop.success": "La partie de Molehunt a été stoppée.", "molehunt.game.end.suspense.title": "§eEt les gagnants sont...", "molehunt.game.end.winners.moles.title": "§cLes Taupes !", "molehunt.game.end.winners.survivors.title": "§aPas les Taupes !", - "molehunt.game.end.winners.subtitle": "§Les Taupes sont", + "molehunt.game.end.winners.subtitle": "§Les Taupes sont ", "molehunt.game.start.suspense": "§eVous êtes...", "molehunt.game.start.mole.title": "§cLa Taupe !", "molehunt.game.start.mole.subtitle": "§eRécupérer la liste des taupes avec §6/molehunt moles", -- cgit v1.2.3 From 4e15b847ada05e7539ca2b8e45dce770f1b300ef Mon Sep 17 00:00:00 2001 From: anhgelus Date: Fri, 23 Aug 2024 21:09:08 +0000 Subject: style(game): add mod_id prefix to all gamerules --- src/client/resources/assets/molehunt/lang/en_us.json | 12 ++++++------ src/client/resources/assets/molehunt/lang/fr_fr.json | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src/client') diff --git a/src/client/resources/assets/molehunt/lang/en_us.json b/src/client/resources/assets/molehunt/lang/en_us.json index fb5f1fa..7d882e4 100644 --- a/src/client/resources/assets/molehunt/lang/en_us.json +++ b/src/client/resources/assets/molehunt/lang/en_us.json @@ -13,10 +13,10 @@ "molehunt.game.start.mole.title": "§cThe Mole!", "molehunt.game.start.mole.subtitle": "§eGet the list of moles with §6/molehunt moles", "molehunt.game.start.survivor": "§aNot the Mole!", - "gamerule.gameDuration": "Duration of a game", - "gamerule.molePercentage": "Percentage of Mole", - "gamerule.moleCount": "Number of Mole", - "gamerule.showNametags": "Show players' nametag", - "gamerule.showTab": "Enable the tab", - "gamerule.showSkins": "Show players' skin" + "gamerule.molehunt:gameDuration": "Duration of a game", + "gamerule.molehunt:molePercentage": "Percentage of Mole", + "gamerule.molehunt:moleCount": "Number of Mole", + "gamerule.molehunt:showNametags": "Show players' nametag", + "gamerule.molehunt:showTab": "Enable the tab", + "gamerule.molehunt:showSkins": "Show players' skin" } \ No newline at end of file diff --git a/src/client/resources/assets/molehunt/lang/fr_fr.json b/src/client/resources/assets/molehunt/lang/fr_fr.json index 5a47c07..cfd52d8 100644 --- a/src/client/resources/assets/molehunt/lang/fr_fr.json +++ b/src/client/resources/assets/molehunt/lang/fr_fr.json @@ -13,10 +13,10 @@ "molehunt.game.start.mole.title": "§cLa Taupe !", "molehunt.game.start.mole.subtitle": "§eRécupérer la liste des taupes avec §6/molehunt moles", "molehunt.game.start.survivor": "§aPas la Taupe!", - "gamerule.gameDuration": "Durée d'une partie", - "gamerule.molePercentage": "Pourcentage de Taupes", - "gamerule.moleCount": "Nombre de Taupes", - "gamerule.showNametags": "Affiche les nametags des joueurs", - "gamerule.showTab": "Active le tab", - "gamerule.showSkins": "Affiche les skins des joueurs" + "gamerule.molehunt:gameDuration": "Durée d'une partie", + "gamerule.molehunt:molePercentage": "Pourcentage de Taupes", + "gamerule.molehunt:moleCount": "Nombre de Taupes", + "gamerule.molehunt:showNametags": "Affiche les nametags des joueurs", + "gamerule.molehunt:showTab": "Active le tab", + "gamerule.molehunt:showSkins": "Affiche les skins des joueurs" } \ No newline at end of file -- cgit v1.2.3 From d1d56e097d1aaa90358069370f454e65fc9dbbd5 Mon Sep 17 00:00:00 2001 From: anhgelus Date: Fri, 23 Aug 2024 22:29:40 +0000 Subject: feat(command): disable autocompletion for /molehunt moles when not mole --- src/client/resources/assets/molehunt/lang/en_us.json | 2 +- src/client/resources/assets/molehunt/lang/fr_fr.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/resources/assets/molehunt/lang/en_us.json b/src/client/resources/assets/molehunt/lang/en_us.json index 7d882e4..3a50d81 100644 --- a/src/client/resources/assets/molehunt/lang/en_us.json +++ b/src/client/resources/assets/molehunt/lang/en_us.json @@ -8,7 +8,7 @@ "molehunt.game.end.suspense.title": "§eAnd the winners are...", "molehunt.game.end.winners.moles.title": "§cThe Moles!", "molehunt.game.end.winners.survivors.title": "§aNot the Moles!", - "molehunt.game.end.winners.subtitle": "§6The Moles were ", + "molehunt.game.end.winners.subtitle": "§6The Moles were", "molehunt.game.start.suspense": "§eYou are...", "molehunt.game.start.mole.title": "§cThe Mole!", "molehunt.game.start.mole.subtitle": "§eGet the list of moles with §6/molehunt moles", diff --git a/src/client/resources/assets/molehunt/lang/fr_fr.json b/src/client/resources/assets/molehunt/lang/fr_fr.json index cfd52d8..bb73ca8 100644 --- a/src/client/resources/assets/molehunt/lang/fr_fr.json +++ b/src/client/resources/assets/molehunt/lang/fr_fr.json @@ -8,7 +8,7 @@ "molehunt.game.end.suspense.title": "§eEt les gagnants sont...", "molehunt.game.end.winners.moles.title": "§cLes Taupes !", "molehunt.game.end.winners.survivors.title": "§aPas les Taupes !", - "molehunt.game.end.winners.subtitle": "§Les Taupes sont ", + "molehunt.game.end.winners.subtitle": "§Les Taupes sont", "molehunt.game.start.suspense": "§eVous êtes...", "molehunt.game.start.mole.title": "§cLa Taupe !", "molehunt.game.start.mole.subtitle": "§eRécupérer la liste des taupes avec §6/molehunt moles", -- cgit v1.2.3