mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 23:13:48 +01:00
We need to detect job by jobs key name too
This commit is contained in:
parent
f6faa68d79
commit
04b426c806
@ -477,6 +477,8 @@ public class Jobs extends JavaPlugin {
|
|||||||
for (Job job : jobs) {
|
for (Job job : jobs) {
|
||||||
if (job.getName().equalsIgnoreCase(jobName))
|
if (job.getName().equalsIgnoreCase(jobName))
|
||||||
return job;
|
return job;
|
||||||
|
if (job.getJobKeyName().equalsIgnoreCase(jobName))
|
||||||
|
return job;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user