1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00

Make sure that the chat format contains jobs variable

This commit is contained in:
montlikadani 2021-04-02 19:18:25 +02:00
parent b7dbd08d83
commit cf55d7fbd7

View File

@ -62,6 +62,9 @@ public class JobsChatEvent implements Listener {
if (honorific.equals(" ")) if (honorific.equals(" "))
honorific = ""; honorific = "";
event.setFormat(event.getFormat().replace("{jobs}", honorific)); String format = event.getFormat();
if (format.contains("{jobs}")) {
event.setFormat(format.replace("{jobs}", honorific));
}
} }
} }