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:
parent
f6faa68d79
commit
04b426c806
@ -477,6 +477,8 @@ public class Jobs extends JavaPlugin {
|
||||
for (Job job : jobs) {
|
||||
if (job.getName().equalsIgnoreCase(jobName))
|
||||
return job;
|
||||
if (job.getJobKeyName().equalsIgnoreCase(jobName))
|
||||
return job;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user