forked from MagicBane/Server
HZ related stuff
This commit is contained in:
@@ -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<Guild, ArrayList<PlayerCharacter>> 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<>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user