mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 05:55:27 +01:00
Make it null is name is not set properly so we can skip this job
This commit is contained in:
parent
6ca08ce0f2
commit
ac914031d3
@ -115,7 +115,7 @@ public class ConfigManager {
|
||||
continue;
|
||||
|
||||
ConfigurationSection jobSection = jobsSection.getConfigurationSection(jobKey);
|
||||
String jobName = jobSection.getString("fullname");
|
||||
String jobName = jobSection.getString("fullname", null);
|
||||
|
||||
// Translating unicode
|
||||
jobName = StringEscapeUtils.unescapeJava(jobName);
|
||||
@ -138,7 +138,7 @@ public class ConfigManager {
|
||||
maxSlots = null;
|
||||
}
|
||||
|
||||
String jobShortName = jobSection.getString("shortname");
|
||||
String jobShortName = jobSection.getString("shortname", null);
|
||||
if (jobShortName == null) {
|
||||
Jobs.getPluginLogger().warning("Job " + jobKey + " is missing the shortname property. Skipping job!");
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user