mirror of
https://github.com/darksaid98/nightcore-spigot.git
synced 2026-12-04 06:28:51 +00:00
v2.7.2
This commit is contained in:
1 parent
d0999762d2
commit
5a13e98744
1 file changed
+2
-1
@@ -47,9 +47,10 @@ public class LangMessage {
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public LangMessage setPrefix(@Nullable String prefix) {
|
public LangMessage setPrefix(@Nullable String prefix) {
|
||||||
|
boolean init = this.message == null;
|
||||||
this.message = NightMessage.from(prefix == null || !options.hasPrefix() ? defaultText : prefix + defaultText);
|
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();
|
this.message.compile();
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
Reference in new issue
Block a user