aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/resources/assets/molehunt/lang/en_us.json12
-rw-r--r--src/client/resources/assets/molehunt/lang/fr_fr.json12
-rw-r--r--src/main/java/world/anhgelus/molehunt/Molehunt.java12
3 files changed, 18 insertions, 18 deletions
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
diff --git a/src/main/java/world/anhgelus/molehunt/Molehunt.java b/src/main/java/world/anhgelus/molehunt/Molehunt.java
index aba2ad4..7a55450 100644
--- a/src/main/java/world/anhgelus/molehunt/Molehunt.java
+++ b/src/main/java/world/anhgelus/molehunt/Molehunt.java
@@ -39,22 +39,22 @@ public class Molehunt implements ModInitializer {
public static final SimpleConfig CONFIG_FILE = Config.configFile(MOD_ID);
public static final GameRules.Key<GameRules.IntRule> GAME_DURATION = GameRuleRegistry.register(
- "gameDuration",
+ MOD_ID +":gameDuration",
GameRules.Category.MISC,
GameRuleFactory.createIntRule(CONFIG_FILE.getOrDefault("game_duration", 90))
);
public static final GameRules.Key<GameRules.IntRule> MOLE_PERCENTAGE = GameRuleRegistry.register(
- "molePercentage",
+ MOD_ID +":molePercentage",
GameRules.Category.MISC,
GameRuleFactory.createIntRule(CONFIG_FILE.getOrDefault("mole_percentage", 25))
);
public static final GameRules.Key<GameRules.IntRule> MOLE_COUNT = GameRuleRegistry.register(
- "moleCount",
+ MOD_ID +":moleCount",
GameRules.Category.MISC,
GameRuleFactory.createIntRule(CONFIG_FILE.getOrDefault("mole_count", -1))
);
public static final GameRules.Key<GameRules.BooleanRule> SHOW_NAMETAGS = GameRuleRegistry.register(
- "showNametags",
+ MOD_ID +":showNametags",
GameRules.Category.MISC,
GameRuleFactory.createBooleanRule(CONFIG_FILE.getOrDefault("show_nametags", false), (server, val) -> {
if (CONFIG == null) return;
@@ -62,7 +62,7 @@ public class Molehunt implements ModInitializer {
})
);
public static final GameRules.Key<GameRules.BooleanRule> SHOW_TAB = GameRuleRegistry.register(
- "showTab"
+ MOD_ID +":showTab"
, GameRules.Category.MISC,
GameRuleFactory.createBooleanRule(CONFIG_FILE.getOrDefault("show_tab", false), (server, val) -> {
if (CONFIG == null) return;
@@ -70,7 +70,7 @@ public class Molehunt implements ModInitializer {
})
);
public static final GameRules.Key<GameRules.BooleanRule> SHOW_SKINS = GameRuleRegistry.register(
- "showSkins",
+ MOD_ID +":showSkins",
GameRules.Category.MISC,
GameRuleFactory.createBooleanRule(CONFIG_FILE.getOrDefault("show_skins", false), (server, val) -> {
if (CONFIG == null) return;