File tree 1 file changed +15
-0
lines changed
src/main/kotlin/com/mairwunnx/projectessentials/spawn
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
2
2
3
3
import com.mairwunnx.projectessentials.core.EssBase
4
4
import com.mairwunnx.projectessentials.core.backlocation.BackLocationProvider
5
+ import com.mairwunnx.projectessentials.core.configuration.localization.LocalizationConfigurationUtils
6
+ import com.mairwunnx.projectessentials.core.localization.processLocalizations
5
7
import com.mairwunnx.projectessentials.home.HomeAPI
6
8
import com.mairwunnx.projectessentials.permissions.permissions.PermissionsAPI
7
9
import com.mairwunnx.projectessentials.spawn.commands.SetSpawnCommand
@@ -32,6 +34,19 @@ class EntryPoint : EssBase() {
32
34
validateForgeVersion()
33
35
MinecraftForge .EVENT_BUS .register(this )
34
36
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
+ }
35
50
}
36
51
37
52
@SubscribeEvent(priority = EventPriority .HIGH )
You can’t perform that action at this time.
0 commit comments