SteamWar/BungeeCore
Archiviert
13
2

Fix Bau delmember when player online but Bau not running
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <git-5w3l@lixfel.de>
Dieser Commit ist enthalten in:
Lixfel 2024-06-28 15:44:35 +02:00
Ursprung 8c098841ba
Commit 6232da87b5

Datei anzeigen

@ -162,7 +162,8 @@ public class BauCommand extends SWCommand {
Chatter member = Chatter.of(user.getUUID());
member.system("BAU_DELMEMBER_DELETED_TARGET", owner);
member.withPlayer(player -> {
if (Bauserver.get(owner.user().getUUID()).getRegisteredServer().getPlayersConnected().contains(player))
Bauserver bauserver = Bauserver.get(owner.user().getUUID());
if (bauserver != null && bauserver.getRegisteredServer().getPlayersConnected().contains(player))
player.createConnectionRequest(VelocityCore.get().getConfig().lobbyserver()).fireAndForget();
});