File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/main/kotlin/com/mairwunnx/projectessentials/cooldown Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package com.mairwunnx.projectessentials.cooldown
22
33import com.mairwunnx.projectessentials.cooldown.commands.CooldownCommand
44import com.mairwunnx.projectessentials.core.EssBase
5+ import com.mairwunnx.projectessentials.core.configuration.localization.LocalizationConfigurationUtils
6+ import com.mairwunnx.projectessentials.core.localization.processLocalizations
57import com.mairwunnx.projectessentials.permissions.permissions.PermissionsAPI
68import net.minecraft.entity.player.ServerPlayerEntity
79import net.minecraftforge.common.MinecraftForge
@@ -25,6 +27,19 @@ internal class EntryPoint : EssBase() {
2527 validateForgeVersion()
2628 MinecraftForge .EVENT_BUS .register(this )
2729 CooldownConfig .load()
30+ loadLocalization()
31+ }
32+
33+ private fun loadLocalization () {
34+ if (LocalizationConfigurationUtils .getConfig().enabled) {
35+ processLocalizations(
36+ EntryPoint ::class .java, listOf (
37+ " /assets/projectessentialscooldown/lang/de_de.json" ,
38+ " /assets/projectessentialscooldown/lang/en_us.json" ,
39+ " /assets/projectessentialscooldown/lang/ru_ru.json"
40+ )
41+ )
42+ }
2843 }
2944
3045 internal companion object {
You can’t perform that action at this time.
0 commit comments