mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
Picking higher permission node for jobs.maxquest
This commit is contained in:
parent
f8d94952bd
commit
0964e5b32b
@ -404,9 +404,8 @@ public class JobsPlayer {
|
||||
|
||||
public int getPlayerMaxQuest(String jobName) {
|
||||
int m1 = (int) Jobs.getPermissionManager().getMaxPermission(this, "jobs.maxquest.all", false, true);
|
||||
if (m1 != 0)
|
||||
return m1;
|
||||
return (int) Jobs.getPermissionManager().getMaxPermission(this, "jobs.maxquest." + jobName, false, true);
|
||||
int m2 = (int) Jobs.getPermissionManager().getMaxPermission(this, "jobs.maxquest." + jobName, false, true);
|
||||
return m1 > m2 ? m1 : m2;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user