mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-02 23:43:44 +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) {
|
public int getPlayerMaxQuest(String jobName) {
|
||||||
int m1 = (int) Jobs.getPermissionManager().getMaxPermission(this, "jobs.maxquest.all", false, true);
|
int m1 = (int) Jobs.getPermissionManager().getMaxPermission(this, "jobs.maxquest.all", false, true);
|
||||||
if (m1 != 0)
|
int m2 = (int) Jobs.getPermissionManager().getMaxPermission(this, "jobs.maxquest." + jobName, false, true);
|
||||||
return m1;
|
return m1 > m2 ? m1 : m2;
|
||||||
return (int) Jobs.getPermissionManager().getMaxPermission(this, "jobs.maxquest." + jobName, false, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user