SteamWar/MissileWars
Archiviert
13
0

Merge remote-tracking branch 'origin/master'
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-07-04 17:35:33 +02:00
Commit 3158817846
2 geänderte Dateien mit 3 neuen und 9 gelöschten Zeilen

Datei anzeigen

@ -21,7 +21,8 @@
package de.steamwar.misslewars;
import de.steamwar.comms.packets.FightInfoPacket;
import de.steamwar.network.NetworkSender;
import de.steamwar.network.packets.common.FightInfoPacket;
import de.steamwar.sql.SteamwarUser;
import org.bukkit.Bukkit;
import org.bukkit.World;
@ -43,9 +44,6 @@ public class FightInfoPacketSender implements Runnable {
@Override
public void run() {
if (Bukkit.getOnlinePlayers().isEmpty()) {
return;
}
if (Config.test()) {
return;
}
@ -68,7 +66,6 @@ public class FightInfoPacketSender implements Runnable {
.filter(integer -> !(bluePlayers.contains(integer) || redPlayers.contains(integer)))
.collect(Collectors.toList());
new FightInfoPacket(serverName, gameMode, worldName, blueName, redName, MissileWars.getFightState().name().toLowerCase(), countdown, blueLeader, redLeader, 0, 0, bluePlayers, redPlayers, spectatorPlayers)
.send(Bukkit.getOnlinePlayers().iterator().next());
NetworkSender.send(new FightInfoPacket(serverName, gameMode, worldName, blueName, redName, MissileWars.getFightState().name().toLowerCase(), countdown, blueLeader, redLeader, 0, 0, bluePlayers, redPlayers, spectatorPlayers));
}
}

Datei anzeigen

@ -19,9 +19,6 @@
package de.steamwar.misslewars;
import de.steamwar.comms.packets.FightInfoPacket;
import de.steamwar.comms.packets.TablistNamePacket;
import de.steamwar.sql.SteamwarUser;
import org.bukkit.*;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Player;