SteamWar/FightSystem
Archiviert
13
1

Revert "Sync WaterTechKO-Detector?"

This reverts commit ff965cca

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2020-06-03 11:22:53 +02:00
Ursprung ff965cca75
Commit 77133bf72a

Datei anzeigen

@ -35,7 +35,7 @@ public class WinconditionWaterTechKO extends Wincondition {
@Override @Override
public void enable() { public void enable() {
checkTask(); checkTask();
task = Bukkit.getScheduler().runTaskTimer(FightSystem.getPlugin(), this::checkTask, 200, 200); task = Bukkit.getScheduler().runTaskTimerAsynchronously(FightSystem.getPlugin(), this::checkTask, 200, 200);
} }
@Override @Override
@ -46,7 +46,7 @@ public class WinconditionWaterTechKO extends Wincondition {
private void checkEmpty(FightTeam team, int teamWater){ private void checkEmpty(FightTeam team, int teamWater){
if(teamWater == 0){ if(teamWater == 0){
Bukkit.broadcastMessage(FightSystem.PREFIX + "§eDas Team " + team.getColoredName() + " §eist Tech K.O.!"); Bukkit.broadcastMessage(FightSystem.PREFIX + "§eDas Team " + team.getColoredName() + " §eist Tech K.O.!");
FightSystem.setSpectateState(Fight.getOpposite(team), "WaterTechKO"); Bukkit.getScheduler().runTask(FightSystem.getPlugin(), () -> FightSystem.setSpectateState(Fight.getOpposite(team), "WaterTechKO"));
} }
} }