diff options
| author | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-08-23 21:09:08 +0000 |
|---|---|---|
| committer | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-08-23 21:09:08 +0000 |
| commit | 4e15b847ada05e7539ca2b8e45dce770f1b300ef (patch) | |
| tree | 4a202c8a35aca8953893bb8b41157ea08a3c2825 | |
| parent | b5434aa054090fd8a3c67590363c0638cb7eb612 (diff) | |
style(game): add mod_id prefix to all gamerules
| -rw-r--r-- | src/client/resources/assets/molehunt/lang/en_us.json | 12 | ||||
| -rw-r--r-- | src/client/resources/assets/molehunt/lang/fr_fr.json | 12 | ||||
| -rw-r--r-- | src/main/java/world/anhgelus/molehunt/Molehunt.java | 12 |
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; |
