mirror of
https://github.com/craftaro/EpicSpawners.git
synced 2025-01-09 03:57:40 +08:00
The autosave tickspeed is now adjustable
This commit is contained in:
parent
4ed48e839b
commit
5d4613d5bd
@ -281,7 +281,9 @@ public class EpicSpawnersPlugin extends JavaPlugin implements EpicSpawners {
|
||||
if (pluginManager.isPluginEnabled("USkyBlock")) this.register(HookUSkyBlock::new);
|
||||
if (pluginManager.isPluginEnabled("WorldGuard")) this.register(HookWorldGuard::new);
|
||||
|
||||
Bukkit.getScheduler().runTaskTimerAsynchronously(this, this::saveToFile, 6000, 6000);
|
||||
|
||||
int timeout = SettingsManager.Setting.AUTOSAVE.getInt() * 60 * 20;
|
||||
Bukkit.getScheduler().runTaskTimerAsynchronously(this, this::saveToFile, timeout, timeout);
|
||||
|
||||
// Start tasks
|
||||
this.particleTask = SpawnerParticleTask.startTask(this);
|
||||
|
@ -221,6 +221,7 @@ public class SettingsManager implements Listener {
|
||||
UPGRADE_PARTICLE_TYPE("Main.Upgrade Particle Type", "SPELL_WITCH"),
|
||||
EXTRA_SPAWN_TICKS("Main.Extra Ticks Added To Each Spawn", 0),
|
||||
MAX_SPAWNERS("Main.Max Spawners Per Player", -1),
|
||||
AUTOSAVE("Main.Auto Save Interval In Seconds", 15),
|
||||
|
||||
COST_EQUATION_XP("Main.Equations.Calculate XP Upgrade Cost", "{XPCost} * {Level}"),
|
||||
COST_EQUATION_ECO("Main.Equations.Calculate Economy Upgrade Cost", "{ECOCost} * {Level}"),
|
||||
|
Loading…
Reference in New Issue
Block a user