Help with UUID

Discussion in 'Plugin Development' started by MinecraftMart, Dec 12, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    MinecraftMart

    So basicly i have some questions

    How do i store a UUID in a Arraylist? Use a String arraylist?

    And how do i get the player name from a UUID? because when a command is runned it must retrieve the player names.

    Hope this is enough information.
    -Mart
     
  2. Offline

    mythbusterma

  3. Offline

    PreFiXAUT

    @MinecraftMart Just simply Store them in a List like @mythbusterma said.

    To get the Name use Bukkit#getPlayer(UUID id) Method and you got your Player. Then use Player#getName() and you're done. NOTE: Working efficient with UUID's only works with Bukkit 1.7.9 +
     
    Unica likes this.
Thread Status:
Not open for further replies.

Share This Page