fixed loading clans

This commit is contained in:
DaTTV 2025-02-23 14:39:28 +01:00
parent 36c8f02456
commit 6a9a3018eb

View file

@ -39,11 +39,6 @@ public final class BlazeSMP extends JavaPlugin {
this.protectedBlocks.load(); this.protectedBlocks.load();
this.log.info("Loaded ProtectedBlocks!"); this.log.info("Loaded ProtectedBlocks!");
this.log.info("Loading Clans...");
this.clans = new Clans();
this.clans.loadAllClans();
this.log.info("Loaded Clans!");
this.log.info("Loading config..."); this.log.info("Loading config...");
saveDefaultConfig(); saveDefaultConfig();
this.configuration = getConfig(); this.configuration = getConfig();
@ -64,10 +59,17 @@ public final class BlazeSMP extends JavaPlugin {
this.log.info("Enabling BlazeSMP..."); this.log.info("Enabling BlazeSMP...");
this.log.info("Loading Homes..."); this.getServer().getScheduler().runTaskLater(this, () -> {
this.homes = new Homes(); this.log.info("Loading Clans...");
this.homes.load(); this.clans = new Clans();
this.log.info("Loaded Homes!"); this.clans.loadAllClans();
this.log.info("Loaded Clans!");
this.log.info("Loading Homes...");
this.homes = new Homes();
this.homes.load();
this.log.info("Loaded Homes!");
}, 20L);
this.log.info("Registering Commands..."); this.log.info("Registering Commands...");
new ClanCommand().register(); new ClanCommand().register();