1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00

We need to detect job by jobs key name too

This commit is contained in:
Zrips 2021-05-07 15:19:49 +03:00
parent f6faa68d79
commit 04b426c806

View File

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