Dieser Commit ist enthalten in:
Ursprung
65ef082ddb
Commit
c06c094d41
@ -16,20 +16,19 @@ public class EggHunt {
|
|||||||
public static final String EGG_HUNT_CONFIG_KEY = "egghunt2023";
|
public static final String EGG_HUNT_CONFIG_KEY = "egghunt2023";
|
||||||
|
|
||||||
public static void init() {
|
public static void init() {
|
||||||
}
|
|
||||||
|
|
||||||
static {
|
|
||||||
new EggHuntCommand();
|
new EggHuntCommand();
|
||||||
new EggClickListener();
|
new EggClickListener();
|
||||||
new EggHuntListener();
|
new EggHuntListener();
|
||||||
|
}
|
||||||
|
|
||||||
|
static {
|
||||||
File file = new File(LobbySystem.getPlugin().getDataFolder(), "eggs.yml");
|
File file = new File(LobbySystem.getPlugin().getDataFolder(), "eggs.yml");
|
||||||
FileConfiguration fileConfiguration = YamlConfiguration.loadConfiguration(file);
|
FileConfiguration fileConfiguration = YamlConfiguration.loadConfiguration(file);
|
||||||
fileConfiguration.getList("eggs")
|
fileConfiguration.getList("eggs")
|
||||||
.forEach(o -> {
|
.forEach(o -> {
|
||||||
if (!(o instanceof Map)) return;
|
if (!(o instanceof Map)) return;
|
||||||
eggList.add(new Egg((Map) o));
|
eggList.add(new Egg((Map) o));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<Egg> getEggList() {
|
public static List<Egg> getEggList() {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren