1
0
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:
Zrips 2017-01-14 22:59:25 +02:00
parent 54ce64d13b
commit 1b00b90df8
2 changed files with 7 additions and 3 deletions

View File

@ -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));

View File

@ -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: