SteamWar/FightSystem
Archiviert
13
1

Final Fixes (TechKO)

Dieser Commit ist enthalten in:
lixfel 2019-04-14 21:22:53 +02:00
Ursprung b95cd479e0
Commit 38afa17293
2 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -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!");
}

Datei anzeigen

@ -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()) {