SteamWar/SpigotCore
Archiviert
13
0

Fix TinyProtocol null player issues #207

Zusammengeführt
Lixfel hat 7 Commits von minifyTinyProtocol nach master 2022-08-23 14:10:15 +02:00 zusammengeführt
Nur Änderungen aus Commit e66744ab5e werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -123,7 +123,10 @@ public class TinyProtocol implements Listener {
private PacketInterceptor(Player player) {
this.player = player;
channel = getChannel.get(connections.stream().filter(connection -> player.getUniqueId().equals(getUUID.get(connection))).findAny().orElseThrow(() -> new SecurityException("Could not find channel for player " + player.getName())));
channel = getChannel.get(connections.stream().filter(connection -> player.getUniqueId().equals(getUUID.get(connection))).findAny().orElseThrow(() -> {
player.kickPlayer("An injection failure happend.");
return new SecurityException("Could not find channel for player " + player.getName());
}));
synchronized (playerInterceptors) {
playerInterceptors.put(player, this);