mirror of
https://github.com/Freezy-Studios/BlazeSMP.git
synced 2025-04-21 19:44:05 +02:00
fixed loading clans
This commit is contained in:
parent
36c8f02456
commit
6a9a3018eb
1 changed files with 11 additions and 9 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue