1
0
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:
Zrips 2022-08-08 14:31:30 +03:00
parent f8d94952bd
commit 0964e5b32b

View File

@ -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;
}
/**