SteamWar/BungeeCore
Archiviert
13
2

Remove Redundant Message when switching Servers
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
zOnlyKroks 2022-04-05 18:24:23 +02:00
Ursprung cb52e0bc38
Commit 9ef4062d4a

Datei anzeigen

@ -42,7 +42,7 @@ public class Fabric extends BasicListener {
private final Set<String> neededMods = new HashSet<>();
public static List<ProxiedPlayer> checkedPlayers = new LinkedList<>();
public static final Set<ProxiedPlayer> checkedPlayers = new HashSet<>();
{
neededMods.add("java");
@ -63,8 +63,6 @@ public class Fabric extends BasicListener {
ProxiedPlayer player = (ProxiedPlayer) e.getSender();
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
if(checkedPlayers.contains(player)) return;
List<Mod> mods = new LinkedList<>();
byte[] data = e.getData();
@ -112,9 +110,9 @@ public class Fabric extends BasicListener {
}
if(Utils.handleMods(player,mods)) {
if(!checkedPlayers.contains(player)) Message.send("MODIFICATION_CHECK_SUCCESS", player);
checkedPlayers.add(player);
Storage.fabricPlayers.remove(player);
Message.send("MODIFICATION_CHECK_SUCCESS", player);
}
}