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

This should be enabled by default, doest run schedule if its empty.

This commit is contained in:
Zrips 2019-08-16 16:47:31 +03:00
parent 4ad888ba96
commit 7d06f5ad63
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>Jobs</groupId>
<artifactId>jobs</artifactId>
<version>4.13.0</version>
<version>4.13.1</version>
<name>Jobs</name>
<url>http://maven.apache.org</url>
<properties>

View File

@ -537,7 +537,7 @@ public class GeneralConfigManager {
ResetTimeMinute = c.get("DailyQuests.ResetTime.Minute", 0);
c.addComment("ScheduleManager", "Enables the schedule manager to boost the server.", "By default this has been disabled for causing memory leak.");
enableSchedule = c.get("ScheduleManager.Use", false);
enableSchedule = c.get("ScheduleManager.Use", true);
c.addComment("max-jobs", "Maximum number of jobs a player can join.", "Use 0 for no maximum", "Keep in mind that jobs.max.[amount] will bypass this setting");
maxJobs = c.get("max-jobs", 3);

View File

@ -52,7 +52,7 @@ public class ScheduleManager {
return TimeManage.timeInInt();
}
private boolean scheduler() {
private static boolean scheduler() {
if (Jobs.getGCManager().BoostSchedule.isEmpty())
return false;