Final Fixes (TechKO)
Dieser Commit ist enthalten in:
Ursprung
b95cd479e0
Commit
38afa17293
@ -155,6 +155,7 @@ public class FightSystem extends JavaPlugin {
|
|||||||
Config.TeamRedCornerY + Config.SchemsizeY,
|
Config.TeamRedCornerY + Config.SchemsizeY,
|
||||||
Config.TeamRedCornerZ + Config.SchemsizeZ);
|
Config.TeamRedCornerZ + Config.SchemsizeZ);
|
||||||
Bukkit.broadcastMessage(PREFIX + "§aDer Kampf beginnt!");
|
Bukkit.broadcastMessage(PREFIX + "§aDer Kampf beginnt!");
|
||||||
|
WinconditionTechKO.startAutoChecker();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setAllPlayersGM(GameMode gm) {
|
private void setAllPlayersGM(GameMode gm) {
|
||||||
@ -179,8 +180,6 @@ public class FightSystem extends JavaPlugin {
|
|||||||
WinconditionTimeout.timeout();
|
WinconditionTimeout.timeout();
|
||||||
WinconditionEntern.entern();
|
WinconditionEntern.entern();
|
||||||
|
|
||||||
WinconditionTechKO.startAutoChecker();
|
|
||||||
|
|
||||||
Bukkit.broadcastMessage(PREFIX + "§aArena freigegeben!");
|
Bukkit.broadcastMessage(PREFIX + "§aArena freigegeben!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,6 +71,8 @@ public class WinconditionTechKO {
|
|||||||
FightSystem.getPlugin().setSpectateState(Fight.getRedTeam());
|
FightSystem.getPlugin().setSpectateState(Fight.getRedTeam());
|
||||||
FightSystem.getPlugin().getWaterRemover().stop();
|
FightSystem.getPlugin().getWaterRemover().stop();
|
||||||
}
|
}
|
||||||
|
System.out.println("RedList: " + teamRedWater.size());
|
||||||
|
System.out.println("BlueList: " + teamBlueWater.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void removeWater() {
|
public static void removeWater() {
|
||||||
@ -82,6 +84,7 @@ public class WinconditionTechKO {
|
|||||||
Location location = (Location) itrRed.next();
|
Location location = (Location) itrRed.next();
|
||||||
if(location.getBlock().getType() != Material.WATER && location.getBlock().getType() != Material.STATIONARY_WATER) {
|
if(location.getBlock().getType() != Material.WATER && location.getBlock().getType() != Material.STATIONARY_WATER) {
|
||||||
itrRed.remove();
|
itrRed.remove();
|
||||||
|
System.out.println("red remove" + teamRedWater.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(teamRedWater.isEmpty()) {
|
if(teamRedWater.isEmpty()) {
|
||||||
@ -97,6 +100,7 @@ public class WinconditionTechKO {
|
|||||||
Location location = (Location) itrBlue.next();
|
Location location = (Location) itrBlue.next();
|
||||||
if(location.getBlock().getType() != Material.WATER && location.getBlock().getType() != Material.STATIONARY_WATER) {
|
if(location.getBlock().getType() != Material.WATER && location.getBlock().getType() != Material.STATIONARY_WATER) {
|
||||||
itrBlue.remove();
|
itrBlue.remove();
|
||||||
|
System.out.println("blue remove" + teamBlueWater.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(teamBlueWater.isEmpty()) {
|
if(teamBlueWater.isEmpty()) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren