diff --git a/api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java b/api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java index 1c2e16ce..f497f4fc 100644 --- a/api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java @@ -25,7 +25,13 @@ public ComponentRendererTranslator(TranslationProvider translationProvider) { renderer = new TranslatableComponentRenderer() { @Override protected @Nullable MessageFormat translate(@NotNull String key, @NotNull Namespace context) { - return new MessageFormat(provider.getTranslation(context, key)); + String translationFound = provider.getTranslation(context, key); + + if (translationFound == null) { + return null; + } + + return new MessageFormat(translationFound); } }; }