Dieser Commit ist enthalten in:
Ursprung
6ed534bcb3
Commit
aaadb0e5e2
@ -1 +1 @@
|
||||
Subproject commit e3e1a1cfcd603754aec0ced8d0becce88eecd0e5
|
||||
Subproject commit 92f32e410b566a77fed123e1faa42eddcdbd0e0d
|
@ -56,7 +56,7 @@ public class FightEndsHandler extends PacketHandler {
|
||||
if (!ArenaMode.getBySchemType(SchematicType.fromDB(fightEndsPacket.getGameMode())).isRanked()) {
|
||||
return;
|
||||
}
|
||||
BungeeCore.get().getLogger().log(Level.INFO, fightEndsPacket.getWin() + " " + fightEndsPacket.getBlueSchem() + " " + fightEndsPacket.getRedSchem() + " " + fightEndsPacket.getBluePlayers() + " " + fightEndsPacket.getRedPlayers() + " " + fightEndsPacket.getGameMode() + " " + fightEndsPacket.getDuration());
|
||||
// BungeeCore.get().getLogger().log(Level.INFO, fightEndsPacket.getWin() + " " + fightEndsPacket.getBlueSchem() + " " + fightEndsPacket.getRedSchem() + " " + fightEndsPacket.getBluePlayers() + " " + fightEndsPacket.getRedPlayers() + " " + fightEndsPacket.getGameMode() + " " + fightEndsPacket.getDuration());
|
||||
|
||||
boolean bluePublic = SchematicNode.getSchematicNode(fightEndsPacket.getBlueSchem()).getOwner() == 0;
|
||||
boolean redPublic = SchematicNode.getSchematicNode(fightEndsPacket.getRedSchem()).getOwner() == 0;
|
||||
@ -65,7 +65,7 @@ public class FightEndsHandler extends PacketHandler {
|
||||
return;
|
||||
}
|
||||
|
||||
BungeeCore.get().getLogger().log(Level.INFO, "After schematic public check");
|
||||
// BungeeCore.get().getLogger().log(Level.INFO, "After schematic public check");
|
||||
|
||||
// Die nächsten Zeilen filtern ein Fight innerhalb eines Teams nicht gewertet wird, bzw auch wenn nur Teile beider Teams im
|
||||
// gleichen Team sind dieser ungewertet ist.
|
||||
@ -76,7 +76,7 @@ public class FightEndsHandler extends PacketHandler {
|
||||
}
|
||||
}
|
||||
|
||||
BungeeCore.get().getLogger().log(Level.INFO, "After Team check");
|
||||
// BungeeCore.get().getLogger().log(Level.INFO, "After Team check");
|
||||
|
||||
calcSchemElo(fightEndsPacket);
|
||||
calcUserElo(fightEndsPacket);
|
||||
@ -117,7 +117,7 @@ public class FightEndsHandler extends PacketHandler {
|
||||
|
||||
private void update(List<Integer> players, String gameMode, double factor) {
|
||||
for (int player : players) {
|
||||
BungeeCore.get().getLogger().log(Level.INFO, "Player: " + player + " Elo: " + UserElo.getEloOrDefault(player, gameMode) + " Factor: " + factor);
|
||||
// BungeeCore.get().getLogger().log(Level.INFO, "Player: " + player + " Elo: " + UserElo.getEloOrDefault(player, gameMode) + " Factor: " + factor);
|
||||
int playerElo = UserElo.getEloOrDefault(player, gameMode);
|
||||
int eloGain = (int) Math.round(MEDIAN_ELO_GAIN * factor);
|
||||
playerElo += eloGain;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren