From d74f08b179874bc253feb00bb645a95d45a71d91 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 26 Jul 2020 08:11:48 +0200 Subject: [PATCH] Fix AirShip-Testarena startup --- .../src/de/steamwar/core/events/WorldLoadEvent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/core/events/WorldLoadEvent.java b/SpigotCore_Main/src/de/steamwar/core/events/WorldLoadEvent.java index 1685ee3..9c17e80 100644 --- a/SpigotCore_Main/src/de/steamwar/core/events/WorldLoadEvent.java +++ b/SpigotCore_Main/src/de/steamwar/core/events/WorldLoadEvent.java @@ -8,6 +8,7 @@ public class WorldLoadEvent implements Listener { @EventHandler public void onWorldInit(WorldInitEvent e){ - e.getWorld().setKeepSpawnInMemory(false); + if(Integer.parseInt(System.getProperty("fightID", "0")) != -1) // On testarenas not + e.getWorld().setKeepSpawnInMemory(false); } }