We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d74a021 + 97fb1a7 commit b30844bCopy full SHA for b30844b
api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java
@@ -25,7 +25,13 @@ public ComponentRendererTranslator(TranslationProvider translationProvider) {
25
renderer = new TranslatableComponentRenderer<Namespace>() {
26
@Override
27
protected @Nullable MessageFormat translate(@NotNull String key, @NotNull Namespace context) {
28
- return new MessageFormat(provider.getTranslation(context, key));
+ String translationFound = provider.getTranslation(context, key);
29
+
30
+ if (translationFound == null) {
31
+ return null;
32
+ }
33
34
+ return new MessageFormat(translationFound);
35
}
36
};
37
0 commit comments