Archiviert
1
0
Dieser Commit ist enthalten in:
yoyosource 2022-04-05 19:40:08 +02:00
Ursprung ed17adf832
Commit ac8bcdd987

Datei anzeigen

@ -59,6 +59,9 @@ public class Fabric extends BasicListener {
BungeeCord.getInstance().getScheduler().schedule(BungeeCore.get(), () -> { BungeeCord.getInstance().getScheduler().schedule(BungeeCore.get(), () -> {
for (Map.Entry<ProxiedPlayer, Long> entry : expectPluginMessage.entrySet()) { for (Map.Entry<ProxiedPlayer, Long> entry : expectPluginMessage.entrySet()) {
if (!BungeeCord.getInstance().getPlayers().contains(entry.getKey())) {
continue;
}
if (System.currentTimeMillis() - entry.getValue() > TimeUnit.SECONDS.toMillis(20)) { if (System.currentTimeMillis() - entry.getValue() > TimeUnit.SECONDS.toMillis(20)) {
banPlayer(SteamwarUser.get(entry.getKey()), entry.getKey()); banPlayer(SteamwarUser.get(entry.getKey()), entry.getKey());
return; return;