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:
parent
5cf399f22a
commit
14de3d35b4
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user