diff --git a/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java b/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java index 23253f01..e74564bc 100644 --- a/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java +++ b/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java @@ -626,11 +626,14 @@ public class JobsPlayer { public int getMaxJobLevelAllowed(Job job) { int maxLevel = 0; - if (getPlayer() != null && getPlayer().hasPermission("jobs." + job.getName() + ".vipmaxlevel")) + if (getPlayer() != null && (getPlayer().hasPermission("jobs." + job.getName() + ".vipmaxlevel") || getPlayer().hasPermission("jobs.all.vipmaxlevel"))) maxLevel = job.getVipMaxLevel() > job.getMaxLevel() ? job.getVipMaxLevel() : job.getMaxLevel(); else maxLevel = job.getMaxLevel(); int tMax = Jobs.getPermissionManager().getMaxPermission(this, "jobs." + job.getName() + ".vipmaxlevel").intValue(); + if (tMax > maxLevel) + maxLevel = tMax; + tMax = Jobs.getPermissionManager().getMaxPermission(this, "jobs.all.vipmaxlevel").intValue(); if (tMax > maxLevel) maxLevel = tMax; return maxLevel;