diff --git a/src/engine/gameManager/HotzoneManager.java b/src/engine/gameManager/HotzoneManager.java index 3a81c52d..ad9b3125 100644 --- a/src/engine/gameManager/HotzoneManager.java +++ b/src/engine/gameManager/HotzoneManager.java @@ -9,15 +9,20 @@ import engine.net.client.msg.chat.ChatSystemMsg; import engine.objects.*; import org.pmw.tinylog.Logger; +import java.util.ArrayList; +import java.util.HashMap; import java.util.Random; import java.util.concurrent.ThreadLocalRandom; public class HotzoneManager { - + public static Long lastPulseTime = 0L; + public static HashMap> playersPresent; public static Mob hotzoneMob = null; public static void SelectRandomHotzone(){ if(hotzoneMob != null){ hotzoneMob.killCharacter("Hotzone Over"); + hotzoneMob.despawn(); + hotzoneMob.spawnTime = 1000000000; } Random random = new Random(); Zone newHotzone = null; @@ -162,4 +167,10 @@ public class HotzoneManager { DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY); } } + + public static void pulse(){ + if(HotzoneManager.playersPresent == null){ + HotzoneManager.playersPresent = new HashMap<>(); + } + } }