Fix NPE
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
caa8b4aa6a
Commit
b2a9a4ed64
@ -39,13 +39,15 @@ public class FightStatistics {
|
|||||||
}else{
|
}else{
|
||||||
blueResult = 0.5;
|
blueResult = 0.5;
|
||||||
}
|
}
|
||||||
int fightId = create(gameMode, Bukkit.getWorlds().get(0).getName(), starttime, Config.TimeoutTime - FightSystem.getFightTime(),
|
if(Fight.getBlueTeam().getSchematic() != null && Fight.getRedTeam().getSchematic() != null){
|
||||||
blueLeader.getId(), redLeader.getId(), Fight.getBlueTeam().getSchematic().getSchemID(), Fight.getRedTeam().getSchematic().getSchemID(), win, windescription);
|
int fightId = create(gameMode, Bukkit.getWorlds().get(0).getName(), starttime, Config.TimeoutTime - FightSystem.getFightTime(),
|
||||||
|
blueLeader.getId(), redLeader.getId(), Fight.getBlueTeam().getSchematic().getSchemID(), Fight.getRedTeam().getSchematic().getSchemID(), win, windescription);
|
||||||
|
|
||||||
for(FightPlayer fp : Fight.getBlueTeam().getPlayers())
|
for(FightPlayer fp : Fight.getBlueTeam().getPlayers())
|
||||||
savePlayerStats(fp, fightId);
|
savePlayerStats(fp, fightId);
|
||||||
for(FightPlayer fp : Fight.getRedTeam().getPlayers())
|
for(FightPlayer fp : Fight.getRedTeam().getPlayers())
|
||||||
savePlayerStats(fp, fightId);
|
savePlayerStats(fp, fightId);
|
||||||
|
}
|
||||||
|
|
||||||
if(Config.Ranked && !Config.event()){
|
if(Config.Ranked && !Config.event()){
|
||||||
int blueElo = Elo.getElo(blueLeader.getId(), gameMode);
|
int blueElo = Elo.getElo(blueLeader.getId(), gameMode);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren