1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-20 07:01:22 +01:00
This commit is contained in:
Zrips 2018-10-16 12:38:31 +03:00
parent 9dfa9177d1
commit 4af999b7cc

View File

@ -575,6 +575,7 @@ public class JobsListener implements Listener {
String format = event.getFormat();
// check if the player is in the job
if (jPlayer != null)
for (Job job : Jobs.getJobs()) {
if (!jPlayer.isInJob(job))
format = format.replace("%1$s", "");
@ -598,6 +599,7 @@ public class JobsListener implements Listener {
honorific = "";
String format = event.getFormat();
// check if the player is in the job
if (jPlayer != null)
for (Job job : Jobs.getJobs()) {
if (!jPlayer.isInJob(job))
format = format.replace("{jobs}", "");
@ -622,6 +624,7 @@ public class JobsListener implements Listener {
honorific = "";
String format = event.getFormat();
// check if the player is in the job
if (jPlayer != null)
for (Job job : Jobs.getJobs()) {
if (!jPlayer.isInJob(job))
format = format.replace("{jobs}", "");