mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 15:03:36 +01:00
Make sure that the chat format contains jobs variable
This commit is contained in:
parent
b7dbd08d83
commit
cf55d7fbd7
@ -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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user