From 6cb0beba8f542d10d4254b2f82692b6823e74a9a Mon Sep 17 00:00:00 2001 From: Zrips Date: Wed, 11 Jan 2017 13:33:32 +0200 Subject: [PATCH] Player online check for brew event --- com/gamingmesh/jobs/listeners/JobsPaymentListener.java | 2 +- jobConfig.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/com/gamingmesh/jobs/listeners/JobsPaymentListener.java b/com/gamingmesh/jobs/listeners/JobsPaymentListener.java index 993e686a..b22513d5 100644 --- a/com/gamingmesh/jobs/listeners/JobsPaymentListener.java +++ b/com/gamingmesh/jobs/listeners/JobsPaymentListener.java @@ -228,7 +228,7 @@ public class JobsPaymentListener implements Listener { JobsPlayer jPlayer = Jobs.getPlayerManager().getJobsPlayer(playerName); - if (jPlayer == null || !jPlayer.getPlayer().isOnline()) + if (jPlayer == null || !jPlayer.isOnline()) return; Player player = jPlayer.getPlayer(); diff --git a/jobConfig.yml b/jobConfig.yml index a3b73fd5..d9b19bb9 100644 --- a/jobConfig.yml +++ b/jobConfig.yml @@ -25,6 +25,8 @@ Jobs: description: Earns money felling and planting trees # The colour of the name, for a full list of supported colours, go to the message config. ChatColour: GREEN + # [OPTIONAL] The colour of the boss bar: GREEN, BLUE, RED, WHITE, YELLOW, PINK, PURPLE. + BossBarColour: WHITE # Option to let you choose what kind of prefix this job adds to your name. # options are: full, title, job, shortfull, shorttitle, shortjob and none chat-display: full