SteamWar/BungeeCore
Archiviert
13
2

Hotfix some player connection issues for title sending
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2023-05-13 09:02:20 +02:00
Ursprung 9e6c6ace27
Commit 6c540c3bac

Datei anzeigen

@ -159,6 +159,8 @@ public class FightEndsHandler extends PacketHandler {
} }
private void send(ProxiedPlayer player, String text, BaseComponent[] eloGainComponent) { private void send(ProxiedPlayer player, String text, BaseComponent[] eloGainComponent) {
if (player == null) return;
if (!player.isConnected()) return;
Title title = new BungeeTitle().title(TextComponent.fromLegacyText(text)) Title title = new BungeeTitle().title(TextComponent.fromLegacyText(text))
.subTitle(eloGainComponent) .subTitle(eloGainComponent)
.fadeIn(5) .fadeIn(5)