From 38afa172937d0d35dc322e1c9d4e2345c9afc369 Mon Sep 17 00:00:00 2001 From: lixfel Date: Sun, 14 Apr 2019 21:22:53 +0200 Subject: [PATCH] Final Fixes (TechKO) --- src/me/yaruma/fightsystem/FightSystem.java | 3 +-- .../yaruma/fightsystem/winconditions/WinconditionTechKO.java | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/me/yaruma/fightsystem/FightSystem.java b/src/me/yaruma/fightsystem/FightSystem.java index bf690a2..c2c0368 100644 --- a/src/me/yaruma/fightsystem/FightSystem.java +++ b/src/me/yaruma/fightsystem/FightSystem.java @@ -155,6 +155,7 @@ public class FightSystem extends JavaPlugin { Config.TeamRedCornerY + Config.SchemsizeY, Config.TeamRedCornerZ + Config.SchemsizeZ); Bukkit.broadcastMessage(PREFIX + "§aDer Kampf beginnt!"); + WinconditionTechKO.startAutoChecker(); } private void setAllPlayersGM(GameMode gm) { @@ -179,8 +180,6 @@ public class FightSystem extends JavaPlugin { WinconditionTimeout.timeout(); WinconditionEntern.entern(); - WinconditionTechKO.startAutoChecker(); - Bukkit.broadcastMessage(PREFIX + "§aArena freigegeben!"); } diff --git a/src/me/yaruma/fightsystem/winconditions/WinconditionTechKO.java b/src/me/yaruma/fightsystem/winconditions/WinconditionTechKO.java index b6ad22f..cb8fdd5 100644 --- a/src/me/yaruma/fightsystem/winconditions/WinconditionTechKO.java +++ b/src/me/yaruma/fightsystem/winconditions/WinconditionTechKO.java @@ -71,6 +71,8 @@ public class WinconditionTechKO { FightSystem.getPlugin().setSpectateState(Fight.getRedTeam()); FightSystem.getPlugin().getWaterRemover().stop(); } + System.out.println("RedList: " + teamRedWater.size()); + System.out.println("BlueList: " + teamBlueWater.size()); } public static void removeWater() { @@ -82,6 +84,7 @@ public class WinconditionTechKO { Location location = (Location) itrRed.next(); if(location.getBlock().getType() != Material.WATER && location.getBlock().getType() != Material.STATIONARY_WATER) { itrRed.remove(); + System.out.println("red remove" + teamRedWater.size()); } } if(teamRedWater.isEmpty()) { @@ -97,6 +100,7 @@ public class WinconditionTechKO { Location location = (Location) itrBlue.next(); if(location.getBlock().getType() != Material.WATER && location.getBlock().getType() != Material.STATIONARY_WATER) { itrBlue.remove(); + System.out.println("blue remove" + teamBlueWater.size()); } } if(teamBlueWater.isEmpty()) {