Update EloPlayerHandler and EloSchemHandler to handle non schem FightEndsPackets #519
@ -20,19 +20,18 @@
|
||||
package de.steamwar.velocitycore.network.handlers;
|
||||
|
||||
import com.velocitypowered.api.proxy.Player;
|
||||
import de.steamwar.velocitycore.ArenaMode;
|
||||
import de.steamwar.velocitycore.VelocityCore;
|
||||
import de.steamwar.network.packets.PacketHandler;
|
||||
import de.steamwar.network.packets.common.FightEndsPacket;
|
||||
import de.steamwar.sql.SchematicType;
|
||||
import de.steamwar.sql.SteamwarUser;
|
||||
import de.steamwar.sql.UserElo;
|
||||
import de.steamwar.velocitycore.ArenaMode;
|
||||
import de.steamwar.velocitycore.VelocityCore;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
|
||||
import net.kyori.adventure.title.Title;
|
||||
|
||||
import javax.xml.validation.Schema;
|
||||
import java.time.Duration;
|
||||
YoyoNow markierte diese Unterhaltung als gelöst
Veraltet
|
||||
import java.util.*;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
@ -44,7 +44,6 @@ public class EloSchemHandler extends PacketHandler {
|
||||
SchematicType type = SchematicType.fromDB(fightEndsPacket.getGameMode());
|
||||
if (type == null) return;
|
||||
ArenaMode arenaMode = ArenaMode.getBySchemType(type);
|
||||
if (arenaMode == null) return;
|
||||
if (!arenaMode.isRanked()) return;
|
||||
YoyoNow markierte diese Unterhaltung als gelöst
Lixfel
hat
Sollte nicht null werden, check kann daher weggelassen werden. Sollte nicht null werden, check kann daher weggelassen werden.
|
||||
|
||||
if (publicVsPrivate(fightEndsPacket))
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
WTF-Import