Browse Source

box flag checker

lakebane-master
FatBoy-DOTC 5 months ago
parent
commit
ae01a421de
  1. 6
      src/engine/workthreads/BoxFlagThread.java

6
src/engine/workthreads/BoxFlagThread.java

@ -12,10 +12,7 @@ package engine.workthreads;
import engine.Enum; import engine.Enum;
import engine.InterestManagement.InterestManager; import engine.InterestManagement.InterestManager;
import engine.InterestManagement.WorldGrid; import engine.InterestManagement.WorldGrid;
import engine.gameManager.BuildingManager; import engine.gameManager.*;
import engine.gameManager.PowersManager;
import engine.gameManager.SessionManager;
import engine.gameManager.ZergManager;
import engine.math.Vector3fImmutable; import engine.math.Vector3fImmutable;
import engine.objects.*; import engine.objects.*;
import engine.server.MBServerStatics; import engine.server.MBServerStatics;
@ -40,6 +37,7 @@ public class BoxFlagThread implements Runnable {
if(LocalDateTime.now().isAfter(nextPulse)) { if(LocalDateTime.now().isAfter(nextPulse)) {
for(PlayerCharacter pc : SessionManager.getAllActivePlayerCharacters()){ for(PlayerCharacter pc : SessionManager.getAllActivePlayerCharacters()){
if(pc.isEnteredWorld() && pc.isActive()){ if(pc.isEnteredWorld() && pc.isActive()){
ChatManager.chatSystemInfo(pc, " You Are Being Box Checked");
pc.isBoxed = PlayerCharacter.checkIfBoxed(pc); pc.isBoxed = PlayerCharacter.checkIfBoxed(pc);
if(pc.isBoxed) { if(pc.isBoxed) {
if(pc.title.equals(CharacterTitle.BOX) == false) { if(pc.title.equals(CharacterTitle.BOX) == false) {

Loading…
Cancel
Save