From b09de0a70fafaea357e801b60c2b06f65a43c81d Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 16 Dec 2023 14:05:14 +0100 Subject: [PATCH] Commit leftover changes Signed-off-by: Lixfel --- FightSystem_Core/build.gradle | 2 +- .../src/de/steamwar/fightsystem/FightSystem.java | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/FightSystem_Core/build.gradle b/FightSystem_Core/build.gradle index b9d32c2..70ac285 100644 --- a/FightSystem_Core/build.gradle +++ b/FightSystem_Core/build.gradle @@ -47,6 +47,6 @@ dependencies { compileOnly 'io.netty:netty-all:4.1.68.Final' compileOnly 'com.mojang:authlib:1.5.25' - compileOnly swdep("WorldEdit-1.15") + compileOnly swdep("FastAsyncWorldEdit-1.18") compileOnly swdep("SpigotCore") } diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/FightSystem.java b/FightSystem_Core/src/de/steamwar/fightsystem/FightSystem.java index 5de02c4..bead0f8 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/FightSystem.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/FightSystem.java @@ -21,6 +21,7 @@ package de.steamwar.fightsystem; import com.comphenix.tinyprotocol.TinyProtocol; import de.steamwar.core.Core; +import de.steamwar.fightsystem.ai.DummyAI; import de.steamwar.fightsystem.ai.LixfelAI; import de.steamwar.fightsystem.commands.*; import de.steamwar.fightsystem.countdown.*; @@ -167,6 +168,14 @@ public class FightSystem extends JavaPlugin { }else if(Config.mode == ArenaMode.PREPARE) { Fight.getUnrotated().setSchem(SchematicNode.getSchematicNode(Config.PrepareSchemID)); } + + //TODO REMOVE PRIOR TO MERGE + FightStatistics.unrank(); + FightWorld.forceLoad(); + Bukkit.getScheduler().runTaskLater(getPlugin(), () -> { + new LixfelAI(Fight.getBlueTeam(), "Lixfel.AI"); + new DummyAI(Fight.getRedTeam(), "public"); + }, 1); } @Override