Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
aaecb5ac69
Commit
3833c2b07e
@ -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;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren