get player username from uuid

Discussion in 'BungeeCord Plugin Development' started by PmzHeroV2, Jul 1, 2021.

  1. i got a banned player uuid from litebans api, what should i do to get the username
     
  2. It may be possible with OfflinePlayer class.
    Code (Java):
    Bukkit.getOfflinePlayer(uuid).getName();
     
  3. its a bungeecord plugin