diff options
| author | Léo Kosman <leo.kosman@proton.me> | 2024-08-24 23:59:43 +0200 |
|---|---|---|
| committer | Léo Kosman <leo.kosman@proton.me> | 2024-08-24 23:59:43 +0200 |
| commit | 82e4cb178bff8e9e2d7a0507ede7a78bad2f50b2 (patch) | |
| tree | 91059dc691bf020da6c43fdfec3740421ba672e7 | |
| parent | 57cc65835c093d60bcbf12a6a517ede850a1421d (diff) | |
fix: minecraft takes milliseconds and not seconds
| -rw-r--r-- | src/client/resources/assets/molehunt/lang/en_us.json | 3 | ||||
| -rw-r--r-- | src/client/resources/assets/molehunt/lang/fr_fr.json | 3 | ||||
| -rw-r--r-- | src/main/java/world/anhgelus/molehunt/game/Game.java | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/client/resources/assets/molehunt/lang/en_us.json b/src/client/resources/assets/molehunt/lang/en_us.json index fd44d7c..04a3a8b 100644 --- a/src/client/resources/assets/molehunt/lang/en_us.json +++ b/src/client/resources/assets/molehunt/lang/en_us.json @@ -12,7 +12,8 @@ "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.title": "§aNot the Mole!", + "molehunt.game.start.survivor.subtitle": "§eTry to survive and find out who's the mole!", "gamerule.molehunt:gameDuration": "Molehunt : Duration of a game", "gamerule.molehunt:molePercentage": "Molehunt : Percentage of Mole", "gamerule.molehunt:moleCount": "Molehunt : Number of Mole", diff --git a/src/client/resources/assets/molehunt/lang/fr_fr.json b/src/client/resources/assets/molehunt/lang/fr_fr.json index ce1ccbb..42b4722 100644 --- a/src/client/resources/assets/molehunt/lang/fr_fr.json +++ b/src/client/resources/assets/molehunt/lang/fr_fr.json @@ -12,7 +12,8 @@ "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!", + "molehunt.game.start.survivor.title": "§aPas la taupe!", + "molehunt.game.start.survivor.subtitle": "§eEssaye de survivre et de trouver qui est la taupe !", "gamerule.molehunt:gameDuration": "Molehunt : Durée d'une partie", "gamerule.molehunt:molePercentage": "Molehunt : Pourcentage de Taupes", "gamerule.molehunt:moleCount": "Molehunt : Nombre de Taupes", diff --git a/src/main/java/world/anhgelus/molehunt/game/Game.java b/src/main/java/world/anhgelus/molehunt/game/Game.java index 8e2406e..a2fdfbb 100644 --- a/src/main/java/world/anhgelus/molehunt/game/Game.java +++ b/src/main/java/world/anhgelus/molehunt/game/Game.java @@ -93,7 +93,8 @@ public class Game { p.networkHandler.sendPacket(new TitleS2CPacket(Text.translatable("molehunt.game.start.mole.title")));
p.networkHandler.sendPacket(new SubtitleS2CPacket(Text.translatable("molehunt.game.start.mole.subtitle")));
} else {
- p.networkHandler.sendPacket(new TitleS2CPacket(Text.translatable("molehunt.game.start.survivor")));
+ p.networkHandler.sendPacket(new TitleS2CPacket(Text.translatable("molehunt.game.start.survivor.title")));
+ p.networkHandler.sendPacket(new SubtitleS2CPacket(Text.translatable("molehunt.game.start.survivor.subtitle")));
}
// reset health and food level
p.setHealth(p.getMaxHealth());
|
