diff --git a/com/gamingmesh/jobs/PlayerManager.java b/com/gamingmesh/jobs/PlayerManager.java index 962df9f7..a1394e10 100644 --- a/com/gamingmesh/jobs/PlayerManager.java +++ b/com/gamingmesh/jobs/PlayerManager.java @@ -771,8 +771,12 @@ public class PlayerManager { } if (getall) { - boost.add(BoostOf.PetPay, new BoostMultiplier().add(Jobs.getPermissionManager().getMaxPermission(player, "jobs.petpay", force))); - boost.add(BoostOf.NearSpawner, new BoostMultiplier().add(Jobs.getPermissionManager().getMaxPermission(player, "jobs.nearspawner", force))); + Double mount = Jobs.getPermissionManager().getMaxPermission(player, "jobs.petpay", force); + if (mount != null) + boost.add(BoostOf.PetPay, new BoostMultiplier().add(mount)); + mount = Jobs.getPermissionManager().getMaxPermission(player, "jobs.nearspawner", force); + if (mount != null) + boost.add(BoostOf.NearSpawner, new BoostMultiplier().add(mount)); } boost.add(BoostOf.Permission, Jobs.getPlayerManager().getBoost(player, prog, force)); diff --git a/plugin.yml b/plugin.yml index 5435a7d6..84393d11 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,7 +1,7 @@ name: Jobs description: Jobs Plugin for the BukkitAPI main: com.gamingmesh.jobs.Jobs -version: 3.7.5 +version: 3.7.6 author: phrstbrn softdepend: [Vault, iConomy, MythicMobs, McMMO] commands: