SteamWar/BungeeCore
Archiviert
13
2

Update some stuff
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-04-05 19:02:25 +02:00
Ursprung 1119856693
Commit a8507a1920

Datei anzeigen

@ -42,7 +42,7 @@ public class Fabric extends BasicListener {
private final Set<String> neededMods = new HashSet<>();
public static final Set<ProxiedPlayer> checkedPlayers = new HashSet<>();
public static final Map<ProxiedPlayer, Integer> checkedPlayers = new HashMap<>();
{
neededMods.add("java");
@ -110,9 +110,15 @@ public class Fabric extends BasicListener {
}
if(Utils.handleMods(player,mods)) {
if(!checkedPlayers.contains(player)) {
if (checkedPlayers.containsKey(player)) {
long current = checkedPlayers.get(player);
if (current != dataString.hashCode()) {
banPlayer(user, player);
return;
}
} else {
Message.send("MODIFICATION_CHECK_SUCCESS", player);
checkedPlayers.add(player);
checkedPlayers.put(player, dataString.hashCode());
}
Storage.fabricPlayers.remove(player);
}