diff --git a/api/src/main/java/me/blackvein/quests/util/Lang.java b/api/src/main/java/me/blackvein/quests/util/Lang.java index 733f4ddad..af6f3f45e 100644 --- a/api/src/main/java/me/blackvein/quests/util/Lang.java +++ b/api/src/main/java/me/blackvein/quests/util/Lang.java @@ -187,11 +187,16 @@ public class Lang { final String cmdClear = allStrings.get("cmdClear"); final String cmdCancel = allStrings.get("cmdCancel"); final String cmdDone = allStrings.get("cmdDone"); - - final String strAdd = allStrings.get("strAdd").replace("", cmdAdd); - final String strClear = allStrings.get("strClear").replace("", cmdClear); - final String strCancel = allStrings.get("strCancel").replace("", cmdCancel); - final String strDone = allStrings.get("strDone").replace("", cmdDone); + + final String missing = "( Missing translation: https://crowdin.com/translate/translate-quests )"; + final String strAdd = allStrings.get("strAdd") != null + ? allStrings.get("strAdd").replace("", cmdAdd) : missing; + final String strClear = allStrings.get("strClear") != null + ? allStrings.get("strClear").replace("", cmdAdd) : missing; + final String strCancel = allStrings.get("strCancel") != null + ? allStrings.get("strCancel").replace("", cmdAdd) : missing; + final String strDone = allStrings.get("strDone") != null + ? allStrings.get("strDone").replace("", cmdAdd) : missing; final String strSpace = allStrings.get("strSpace"); final String strSemicolon = allStrings.get("strSemicolon"); for (final Entry entry : allStrings.entrySet()) {