9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-28 19:39:14 +00:00

Update HMCCosmetics.java

This commit is contained in:
Fisher
2022-01-18 12:46:57 -05:00
committed by GitHub
parent e22b776d13
commit 3c302e6c4b

View File

@@ -47,13 +47,10 @@ public class HMCCosmetics extends JavaPlugin {
this.userManager = new UserManager(this);
this.cosmeticManager = new CosmeticManager(new HashMap<>());
this.cosmeticsMenu = new CosmeticsMenu(this);
this.messageHandler.load();
this.cosmeticsMenu.load();
this.userManager.startTeleportTask();
this.database = DatabaseFactory.create(this);
this.database.load();
this.registerCommands();
this.registerListeners();
@@ -100,6 +97,12 @@ public class HMCCosmetics extends JavaPlugin {
this.cosmeticManager.getAll().stream().map(ArmorItem::getId).collect(Collectors.toList()));
this.commandManager.register(new CosmeticsCommand(this));
}
public void load() {
this.messageHandler.load();
this.cosmeticsMenu.load();
this.database.load();
}
public MessageHandler getMessageHandler() {
return messageHandler;