From c06c094d41669f9918b854270965bcfdc4e6d0c8 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 11 Apr 2023 17:43:39 +0200 Subject: [PATCH] Hotfix load --- src/de/steamwar/lobby/special/easter/EggHunt.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/de/steamwar/lobby/special/easter/EggHunt.java b/src/de/steamwar/lobby/special/easter/EggHunt.java index 4af6899..68f58ef 100644 --- a/src/de/steamwar/lobby/special/easter/EggHunt.java +++ b/src/de/steamwar/lobby/special/easter/EggHunt.java @@ -16,20 +16,19 @@ public class EggHunt { public static final String EGG_HUNT_CONFIG_KEY = "egghunt2023"; public static void init() { - } - - static { new EggHuntCommand(); new EggClickListener(); new EggHuntListener(); + } + static { File file = new File(LobbySystem.getPlugin().getDataFolder(), "eggs.yml"); FileConfiguration fileConfiguration = YamlConfiguration.loadConfiguration(file); fileConfiguration.getList("eggs") - .forEach(o -> { - if (!(o instanceof Map)) return; - eggList.add(new Egg((Map) o)); - }); + .forEach(o -> { + if (!(o instanceof Map)) return; + eggList.add(new Egg((Map) o)); + }); } public static List getEggList() {