mirror of
https://github.com/SimplexDevelopment/Traverse.git
synced 2025-07-03 16:16:41 +00:00
About to round off the content
This commit is contained in:
@ -10,6 +10,8 @@ import mc.unraveled.reforged.command.TraverseCMD;
|
||||
import mc.unraveled.reforged.command.base.CommandLoader;
|
||||
import mc.unraveled.reforged.data.DataManager;
|
||||
import mc.unraveled.reforged.permission.RankManager;
|
||||
import mc.unraveled.reforged.service.base.Scheduling;
|
||||
import mc.unraveled.reforged.service.base.ServicePool;
|
||||
import mc.unraveled.reforged.storage.DBConnectionHandler;
|
||||
import mc.unraveled.reforged.storage.DBProperties;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
@ -27,6 +29,10 @@ public final class Traverse extends JavaPlugin implements Locker {
|
||||
private BanManager banManager;
|
||||
@Getter
|
||||
private RankManager rankManager;
|
||||
@Getter
|
||||
private Scheduling scheduler;
|
||||
@Getter
|
||||
private ServicePool PIPELINE;
|
||||
|
||||
@Override
|
||||
@SneakyThrows
|
||||
@ -36,10 +42,16 @@ public final class Traverse extends JavaPlugin implements Locker {
|
||||
this.commandLoader = new CommandLoader(this, "TRAVERSE");
|
||||
this.banManager = new BanManager(this);
|
||||
this.rankManager = new RankManager(this);
|
||||
this.scheduler = new Scheduling(this);
|
||||
this.PIPELINE = new ServicePool("PIPELINE", this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
this.banManager.save();
|
||||
this.dataManager.saveCacheToDB();
|
||||
this.PIPELINE.recycle();
|
||||
this.rankManager.save();
|
||||
// Plugin shutdown logic
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user