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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user