1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-02-16 20:31:25 +01:00

Option to disable player data preload, false by default.

This commit is contained in:
Zrips 2016-08-04 17:24:13 +03:00
parent 341a801528
commit 7daa0a7a41

View File

@ -141,6 +141,7 @@ public class GeneralConfigManager {
public Parser maxPointEquation;
public boolean DisabledWorldsUse;
public boolean PreLoadUse;
public List<String> DisabledWorldsList = new ArrayList<String>();
public List<Schedule> BoostSchedule = new ArrayList<Schedule>();
@ -440,6 +441,13 @@ public class GeneralConfigManager {
"Only commands can be performed from disabled worlds with jobs.disabledworld.commands permission node");
DisabledWorldsUse = c.get("Optimizations.DisabledWorlds.Use", false);
DisabledWorldsList = c.getStringList("Optimizations.DisabledWorlds.List", Arrays.asList(Bukkit.getWorlds().get(0).getName()));
c.getW().addComment("Optimizations.PreLoad.Use", "By setting this to true, Jobs plugin will preload some of recent players data to be used instead of loading them from data base on players join");
PreLoadUse = c.get("Optimizations.PreLoad.Use", false);
// c.getW().addComment("Optimizations.Purge.Use", "By setting this to true, Jobs plugin will clean data base on startup from all jobs with level 1 and at 0 exp");
// PurgeUse = c.get("Optimizations.Purge.Use", false);
c.getW().addComment("Logging.Use", "With this set to true all players jobs actions will be logged to database for easy to see statistics",
"This is still in development and in feature it will expand");