mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-20 07:01:22 +01:00
NPE
This commit is contained in:
parent
9dfa9177d1
commit
4af999b7cc
@ -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}", "");
|
||||
|
Loading…
Reference in New Issue
Block a user