File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/main/kotlin/com/mairwunnx/projectessentials/home Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 11package com.mairwunnx.projectessentials.home
22
33import com.mairwunnx.projectessentials.core.EssBase
4+ import com.mairwunnx.projectessentials.core.configuration.localization.LocalizationConfigurationUtils
5+ import com.mairwunnx.projectessentials.core.localization.processLocalizations
46import com.mairwunnx.projectessentials.home.commands.DelHomeCommand
57import com.mairwunnx.projectessentials.home.commands.HomeCommand
68import com.mairwunnx.projectessentials.home.commands.SetHomeCommand
@@ -28,6 +30,19 @@ class EntryPoint : EssBase() {
2830 validateForgeVersion()
2931 MinecraftForge .EVENT_BUS .register(this )
3032 StorageBase .loadUserData()
33+ loadLocalization()
34+ }
35+
36+ private fun loadLocalization () {
37+ if (LocalizationConfigurationUtils .getConfig().enabled) {
38+ processLocalizations(
39+ EntryPoint ::class .java, listOf (
40+ " /assets/projectessentialshome/lang/en_us.json" ,
41+ " /assets/projectessentialshome/lang/ru_ru.json" ,
42+ " /assets/projectessentialshome/lang/de_de.json"
43+ )
44+ )
45+ }
3146 }
3247
3348 @SubscribeEvent
You can’t perform that action at this time.
0 commit comments