# HWIDAltDetectedEvent > Fired when a player joins and the HWID system detects potential alt accounts sharing the same hardware fingerprint. `gg.lode.lecternapi.api.event.HWIDAltDetectedEvent` --- ## Signature ```java public class HWIDAltDetectedEvent extends LecternClientEvent ``` --- ## Methods ### getAlts ```java public List<AltAccount> getAlts() ``` Returns the list of detected alt accounts for this player. --- ## AltAccount Record ```java public record AltAccount(String uuid, String username, int matchingComponents) ``` Represents a detected alt account. | Field | Type | Description | |---|---|---| | `uuid` | `String` | The alt account's UUID. | | `username` | `String` | The alt account's last known username. | | `matchingComponents` | `int` | Number of matching hardware components (out of 6). | ### getCertainty ```java public Certainty getCertainty() ``` Returns the certainty level based on matching hardware components. | Matching Components | Certainty | |---|---| | 5-6 | `DEFINITIVE` | | 4 | `SUSPICIOUS` | | Below 4 | `UNLIKELY` | --- ## Example ```java @EventHandler public void onAltDetected(HWIDAltDetectedEvent event) { Player player = event.getPlayer(); for (HWIDAltDetectedEvent.AltAccount alt : event.getAlts()) { if (alt.getCertainty() == HWIDAltDetectedEvent.Certainty.DEFINITIVE) { Bukkit.getLogger().warning(player.getName() + " is a definitive alt of " + alt.username()); } } } ``` --- ## Related Pages - [[Overview]] — Events overview