File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/main/kotlin/com/mairwunnx/projectessentials/core/api/v1/localization Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ package com.mairwunnx.projectessentials.core.api.v1.localization
4
4
5
5
import com.mairwunnx.projectessentials.core.api.v1.extensions.empty
6
6
import com.mairwunnx.projectessentials.core.api.v1.localization.LocalizationProcessor.fallbackLanguage
7
+ import net.minecraft.entity.player.ServerPlayerEntity
7
8
8
9
/* *
9
10
* Localization API class, for interacting with
@@ -116,4 +117,11 @@ object LocalizationAPI {
116
117
}
117
118
return msg
118
119
}
120
+
121
+ /* *
122
+ * @param player target player to get result.
123
+ * @return player language.
124
+ * @since 2.0.0.
125
+ */
126
+ fun getPlayerLanguage (player : ServerPlayerEntity ): String = player.language
119
127
}
You can’t perform that action at this time.
0 commit comments