We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce70540 commit a656931Copy full SHA for a656931
1 file changed
src/main/java/fr/mrcoq/lib/multilanguageapi/MultiLanguageAPI.java
@@ -134,7 +134,15 @@ public FileConfiguration getConfig(Lang lang) throws LangFileNotFoundException {
134
* @throws LangFileNotFoundException
135
*/
136
public String getString(Lang lang, String path) throws LangFileNotFoundException {
137
- return getConfig(lang).getString(path);
+ String value = getConfig(lang).getString(path);
138
+
139
+ if(value == null) {
140
+ String err = "Missing translation value on `" + path + "` in " + lang.getErrorInformation() + ".";
141
+ plugin.getLogger().severe(err);
142
+ value = "§4" + err + ". Please contact admin.";
143
+ }
144
145
+ return value;
146
}
147
148
/**
0 commit comments