SteamWar/SpigotCore
Archiviert
13
0

Kick player on injection failure
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2022-08-23 13:08:38 +02:00
Ursprung e84958309b
Commit e66744ab5e

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);