13
0

Hotfix load
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2023-04-11 17:43:39 +02:00
Ursprung 65ef082ddb
Commit c06c094d41

Datei anzeigen

@ -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<Egg> getEggList() {