Class PlayerInfo

java.lang.Object
com.velocitypowered.api.proxy.player.PlayerInfo

public class PlayerInfo extends Object
A class that represents the necessary information from all players connected to servers when Redis is enabled.
  • Constructor Details

    • PlayerInfo

      public PlayerInfo(String username, UUID uuid)
      Creates a Player Info holder.
      Parameters:
      username - The username of the player.
      uuid - The UUID of the player.
  • Method Details

    • getUsername

      public String getUsername()
      Gets the username of the player.
      Returns:
      the player's username
    • getUuid

      public UUID getUuid()
      Gets the UUID of the player.
      Returns:
      the player's UUID