Sync WaterTechKO-Detector?
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
2ee2d74432
Commit
ff965cca75
@ -35,7 +35,7 @@ public class WinconditionWaterTechKO extends Wincondition {
|
|||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void enable() {
|
||||||
checkTask();
|
checkTask();
|
||||||
task = Bukkit.getScheduler().runTaskTimerAsynchronously(FightSystem.getPlugin(), this::checkTask, 200, 200);
|
task = Bukkit.getScheduler().runTaskTimer(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.!");
|
||||||
Bukkit.getScheduler().runTask(FightSystem.getPlugin(), () -> FightSystem.setSpectateState(Fight.getOpposite(team), "WaterTechKO"));
|
FightSystem.setSpectateState(Fight.getOpposite(team), "WaterTechKO");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren