File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/main/kotlin/com/mairwunnx/projectessentials/spawn 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.spawn
22
33import com.mairwunnx.projectessentials.core.EssBase
44import com.mairwunnx.projectessentials.core.backlocation.BackLocationProvider
5+ import com.mairwunnx.projectessentials.core.configuration.localization.LocalizationConfigurationUtils
6+ import com.mairwunnx.projectessentials.core.localization.processLocalizations
57import com.mairwunnx.projectessentials.home.HomeAPI
68import com.mairwunnx.projectessentials.permissions.permissions.PermissionsAPI
79import com.mairwunnx.projectessentials.spawn.commands.SetSpawnCommand
@@ -32,6 +34,19 @@ class EntryPoint : EssBase() {
3234 validateForgeVersion()
3335 MinecraftForge .EVENT_BUS .register(this )
3436 SpawnModelBase .loadData()
37+ loadLocalization()
38+ }
39+
40+ private fun loadLocalization () {
41+ if (LocalizationConfigurationUtils .getConfig().enabled) {
42+ processLocalizations(
43+ EntryPoint ::class .java, listOf (
44+ " /assets/projectessentialsspawn/lang/de_de.json" ,
45+ " /assets/projectessentialsspawn/lang/ru_ru.json" ,
46+ " /assets/projectessentialsspawn/lang/en_us.json"
47+ )
48+ )
49+ }
3550 }
3651
3752 @SubscribeEvent(priority = EventPriority .HIGH )
You can’t perform that action at this time.
0 commit comments