This commit is contained in:
nulli0n committed 2024-11-20 16:15:53 +05:00
1 parent d0999762d2
commit 5a13e98744
1 file changed
+2 -1
@@ -47,9 +47,10 @@ public class LangMessage {
@NotNull
public LangMessage setPrefix(@Nullable String prefix) {
boolean init = this.message == null;
this.message = NightMessage.from(prefix == null || !options.hasPrefix() ? defaultText : prefix + defaultText);
if (this.options.getOutputType() != OutputType.TITLES) {
if (init && this.options.getOutputType() != OutputType.TITLES) {
this.message.compile();
}
return this;