mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
Check for null
This commit is contained in:
parent
54ce64d13b
commit
1b00b90df8
@ -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));
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user