hotfixes
Signed-off-by: Yaruma3341 <yaruma3341@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
700d01bdac
Commit
231d3fcb1c
@ -35,7 +35,7 @@ public class WaterRemover {
|
|||||||
}, 0L, 20L);
|
}, 0L, 20L);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void stop() {
|
public void stop() {
|
||||||
if (this.task != null) {
|
if (this.task != null) {
|
||||||
this.task.cancel();
|
this.task.cancel();
|
||||||
}
|
}
|
||||||
|
@ -64,10 +64,12 @@ public class WinconditionTechKO {
|
|||||||
Bukkit.getScheduler().cancelTask(taskID);
|
Bukkit.getScheduler().cancelTask(taskID);
|
||||||
Bukkit.broadcastMessage(FightSystem.PREFIX + "§6Das Team " + Config.TeamRedPrefix + Config.TeamRedName + " §6ist Tech K.O. !");
|
Bukkit.broadcastMessage(FightSystem.PREFIX + "§6Das Team " + Config.TeamRedPrefix + Config.TeamRedName + " §6ist Tech K.O. !");
|
||||||
FightSystem.getPlugin().setSpectateState(Fight.getBlueTeam());
|
FightSystem.getPlugin().setSpectateState(Fight.getBlueTeam());
|
||||||
|
FightSystem.getPlugin().getWaterRemover().stop();
|
||||||
} else if(teamBlueWater.isEmpty()) {
|
} else if(teamBlueWater.isEmpty()) {
|
||||||
Bukkit.getScheduler().cancelTask(taskID);
|
Bukkit.getScheduler().cancelTask(taskID);
|
||||||
Bukkit.broadcastMessage(FightSystem.PREFIX + "§6Das Team " + Config.TeamBluePrefix + Config.TeamBlueName + " §6ist Tech K.O. !");
|
Bukkit.broadcastMessage(FightSystem.PREFIX + "§6Das Team " + Config.TeamBluePrefix + Config.TeamBlueName + " §6ist Tech K.O. !");
|
||||||
FightSystem.getPlugin().setSpectateState(Fight.getRedTeam());
|
FightSystem.getPlugin().setSpectateState(Fight.getRedTeam());
|
||||||
|
FightSystem.getPlugin().getWaterRemover().stop();
|
||||||
}
|
}
|
||||||
Bukkit.broadcastMessage("RedList: " + teamRedWater.size());
|
Bukkit.broadcastMessage("RedList: " + teamRedWater.size());
|
||||||
Bukkit.broadcastMessage("BlueList: " + teamBlueWater.size());
|
Bukkit.broadcastMessage("BlueList: " + teamBlueWater.size());
|
||||||
@ -88,14 +90,15 @@ public class WinconditionTechKO {
|
|||||||
Bukkit.getScheduler().cancelTask(taskID);
|
Bukkit.getScheduler().cancelTask(taskID);
|
||||||
Bukkit.broadcastMessage(FightSystem.PREFIX + "§6Das Team " + Config.TeamRedPrefix + Config.TeamRedName + " §6ist Tech K.O. !");
|
Bukkit.broadcastMessage(FightSystem.PREFIX + "§6Das Team " + Config.TeamRedPrefix + Config.TeamRedName + " §6ist Tech K.O. !");
|
||||||
FightSystem.getPlugin().setSpectateState(Fight.getBlueTeam());
|
FightSystem.getPlugin().setSpectateState(Fight.getBlueTeam());
|
||||||
|
FightSystem.getPlugin().getWaterRemover().stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Team Blue
|
//Team Blue
|
||||||
Iterator itrBlue = teamBlueWater.iterator();
|
Iterator itrBlue = teamBlueWater.iterator();
|
||||||
while (itrRed.hasNext()) {
|
while (itrBlue.hasNext()) {
|
||||||
Location location = (Location) itrRed.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) {
|
||||||
itrRed.remove();
|
itrBlue.remove();
|
||||||
Bukkit.broadcastMessage("blue remove" + teamBlueWater.size());
|
Bukkit.broadcastMessage("blue remove" + teamBlueWater.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -103,6 +106,7 @@ public class WinconditionTechKO {
|
|||||||
Bukkit.getScheduler().cancelTask(taskID);
|
Bukkit.getScheduler().cancelTask(taskID);
|
||||||
Bukkit.broadcastMessage(FightSystem.PREFIX + "§6Das Team " + Config.TeamBluePrefix + Config.TeamBlueName + " §6ist Tech K.O. !");
|
Bukkit.broadcastMessage(FightSystem.PREFIX + "§6Das Team " + Config.TeamBluePrefix + Config.TeamBlueName + " §6ist Tech K.O. !");
|
||||||
FightSystem.getPlugin().setSpectateState(Fight.getRedTeam());
|
FightSystem.getPlugin().setSpectateState(Fight.getRedTeam());
|
||||||
|
FightSystem.getPlugin().getWaterRemover().stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren