SteamWar/FightSystem
Archiviert
13
1

Temp disable fightstatistics
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-03-13 07:40:32 +01:00
Ursprung aaecb5ac69
Commit 3833c2b07e

Datei anzeigen

@ -60,7 +60,7 @@ public class FightStatistics {
public FightStatistics() { public FightStatistics() {
new OneShotStateDependent(ArenaMode.SeriousFight, FightState.Running, this::enable); new OneShotStateDependent(ArenaMode.SeriousFight, FightState.Running, this::enable);
new OneShotStateDependent(ArenaMode.Event, FightState.Spectate, this::setEventResult); new OneShotStateDependent(ArenaMode.Event, FightState.Spectate, this::setEventResult);
new OneShotStateDependent(ArenaMode.SeriousFight, FightState.Spectate, () -> Bukkit.getScheduler().runTask(FightSystem.getPlugin(), this::disable)); //new OneShotStateDependent(ArenaMode.SeriousFight, FightState.Spectate, () -> Bukkit.getScheduler().runTask(FightSystem.getPlugin(), this::disable));
} }
private void enable() { private void enable() {
@ -85,15 +85,10 @@ public class FightStatistics {
int redLeader = getLeader(Fight.getRedTeam()); int redLeader = getLeader(Fight.getRedTeam());
int win = 0; int win = 0;
double blueResult;
if (winner == Fight.getBlueTeam()) { if (winner == Fight.getBlueTeam()) {
win = 1; win = 1;
blueResult = 1;
} else if (winner == Fight.getRedTeam()) { } else if (winner == Fight.getRedTeam()) {
win = 2; win = 2;
blueResult = 0;
} else {
blueResult = 0.5;
} }
Integer blueSchem; Integer blueSchem;