1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-26 04:25:15 +01:00

Added job container ignoreMaxJobsSection

This commit is contained in:
LogGitDev 2021-05-05 04:51:12 +10:00 committed by GitHub
parent 5cf399f22a
commit 14de3d35b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,6 +90,7 @@ public class Job {
private final List<Quest> quests = new ArrayList<>(); private final List<Quest> quests = new ArrayList<>();
private int maxDailyQuests = 1; private int maxDailyQuests = 1;
private int id = 0; private int id = 0;
private boolean ignoreMaxJobs = false;
@Deprecated @Deprecated
public Job(String jobName, String fullName, String jobShortName, String description, CMIChatColor jobColour, Parser maxExpEquation, DisplayMethod displayMethod, int maxLevel, public Job(String jobName, String fullName, String jobShortName, String description, CMIChatColor jobColour, Parser maxExpEquation, DisplayMethod displayMethod, int maxLevel,
@ -652,6 +653,14 @@ public class Job {
return ent != null && worldBlacklist.contains(ent.getWorld().getName()); return ent != null && worldBlacklist.contains(ent.getWorld().getName());
} }
public boolean isIgnoreMaxJobs() {
return ignoreMaxJobs;
}
public void setIgnoreMaxJobs(boolean ignoreMaxJobs) {
this.ignoreMaxJobs = ignoreMaxJobs;
}
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
return obj instanceof Job ? isSame((Job) obj) : false; return obj instanceof Job ? isSame((Job) obj) : false;