Package me.kzlyth.api

Klasse AltInfo

java.lang.Object
me.kzlyth.api.AltInfo

public class AltInfo extends Object
Represents information about a potential alt account.

This model contains basic information about accounts that share the same IP address as another player and are potentially alt accounts.

When using UserInfoAPI.getAlts(java.util.UUID), multiple AltInfo objects can be returned in a list if several accounts share IP addresses with the queried player.

Example:


 List<AltInfo> alts = api.getUserInfoAPI().getAlts(uuid).join();
 if (alts.isEmpty()) {
     getLogger().info("No alt accounts found");
 } else {
     getLogger().info("Found " + alts.size() + " potential alt account(s):");
     for (AltInfo alt : alts) {
         getLogger().info("  - " + alt.getPlayerName() + " (" + alt.getUuid() + ")");
     }
 }
 
Seit:
1.2.3
Autor:
Zenith-Studios
  • Konstruktordetails

    • AltInfo

      public AltInfo(@NotNull @NotNull UUID uuid, @NotNull @NotNull String playerName)
      Constructs a new AltInfo object.
      Parameter:
      uuid - The UUID of the alt account
      playerName - The player name of the alt account
  • Methodendetails

    • getUuid

      @NotNull public @NotNull UUID getUuid()
      Gets the UUID of the potential alt account.
      Gibt zurück:
      The alt account's UUID
    • getPlayerName

      @NotNull public @NotNull String getPlayerName()
      Gets the player name of the potential alt account.
      Gibt zurück:
      The alt account's player name
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object