diff --git a/src/main/java/me/waterarchery/litsellchest/LitSellChest.java b/src/main/java/me/waterarchery/litsellchest/LitSellChest.java index 2554513..61e1335 100644 --- a/src/main/java/me/waterarchery/litsellchest/LitSellChest.java +++ b/src/main/java/me/waterarchery/litsellchest/LitSellChest.java @@ -36,13 +36,16 @@ public final class LitSellChest extends JavaPlugin { public void onEnable() { instance = this; libs = LitLibs.of(getInstance()); + ConfigHandler.getInstance(); ChestHandler.getInstance(); + GUIHandler.getInstance(); createDatabase(); registerCommands(); registerEvents(); registerHooks(); + libs.reload(); } diff --git a/src/main/java/me/waterarchery/litsellchest/handlers/ChestHandler.java b/src/main/java/me/waterarchery/litsellchest/handlers/ChestHandler.java index 36b192f..390c0b7 100644 --- a/src/main/java/me/waterarchery/litsellchest/handlers/ChestHandler.java +++ b/src/main/java/me/waterarchery/litsellchest/handlers/ChestHandler.java @@ -1,5 +1,6 @@ package me.waterarchery.litsellchest.handlers; +import lombok.Getter; import me.waterarchery.litlibs.LitLibs; import me.waterarchery.litlibs.configuration.ConfigManager; import me.waterarchery.litsellchest.LitSellChest; @@ -24,6 +25,7 @@ import java.util.List; import java.util.UUID; +@Getter public class ChestHandler { private final List chestTypes = new ArrayList<>(); @@ -235,10 +237,6 @@ public void addLoadedChest(SellChest chest) { loadedChests.add(chest); } - public List getChestTypes() { - return chestTypes; - } - public List getLoadedChests() { return new ArrayList<>(loadedChests); }