From aaadb0e5e27fef82581f736dbb7f96558a4575c4 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 12 May 2023 23:36:48 +0200 Subject: [PATCH] Update some more stuff --- CommonCore | 2 +- .../bungeecore/network/handlers/FightEndsHandler.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CommonCore b/CommonCore index e3e1a1cf..92f32e41 160000 --- a/CommonCore +++ b/CommonCore @@ -1 +1 @@ -Subproject commit e3e1a1cfcd603754aec0ced8d0becce88eecd0e5 +Subproject commit 92f32e410b566a77fed123e1faa42eddcdbd0e0d diff --git a/src/de/steamwar/bungeecore/network/handlers/FightEndsHandler.java b/src/de/steamwar/bungeecore/network/handlers/FightEndsHandler.java index e4815ebe..9db43bae 100644 --- a/src/de/steamwar/bungeecore/network/handlers/FightEndsHandler.java +++ b/src/de/steamwar/bungeecore/network/handlers/FightEndsHandler.java @@ -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 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;