diff --git a/src/main/java/com/gamingmesh/jobs/stuff/complement/JobsChatEvent.java b/src/main/java/com/gamingmesh/jobs/stuff/complement/JobsChatEvent.java index 263b17de..beb5613a 100644 --- a/src/main/java/com/gamingmesh/jobs/stuff/complement/JobsChatEvent.java +++ b/src/main/java/com/gamingmesh/jobs/stuff/complement/JobsChatEvent.java @@ -62,6 +62,9 @@ public class JobsChatEvent implements Listener { if (honorific.equals(" ")) honorific = ""; - event.setFormat(event.getFormat().replace("{jobs}", honorific)); + String format = event.getFormat(); + if (format.contains("{jobs}")) { + event.setFormat(format.replace("{jobs}", honorific)); + } } }