Skip to content

Commit

Permalink
Refactored the code
Browse files Browse the repository at this point in the history
  • Loading branch information
WaterArchery committed Nov 27, 2024
1 parent fa75477 commit 9e941ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/main/java/me/waterarchery/litsellchest/LitSellChest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -24,6 +25,7 @@
import java.util.List;
import java.util.UUID;

@Getter
public class ChestHandler {

private final List<SellChestType> chestTypes = new ArrayList<>();
Expand Down Expand Up @@ -235,10 +237,6 @@ public void addLoadedChest(SellChest chest) {
loadedChests.add(chest);
}

public List<SellChestType> getChestTypes() {
return chestTypes;
}

public List<SellChest> getLoadedChests() {
return new ArrayList<>(loadedChests);
}
Expand Down

0 comments on commit 9e941ec

Please sign in to comment.