Teleport players from HashMap to personality points

Discussion in 'Plugin Development' started by mr_snake302, May 10, 2014.

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

    mr_snake302

    Hi all!
    For simple I have got HashMap with 4 players!
    I need teleport all players from HashMap to random spawn points:
    one player to loc1
    one player to loc2
    one player to loc3
    one player to loc4

    How I can make this?
     
  2. Offline

    minoneer

    Player#teleport(Location) ?
     
  3. Offline

    mr_snake302

  4. Offline

    minoneer

    Can you explain a little more? I'm still not sure what exactly you want to achieve.
     
  5. Code:
    for (Player player : hashmap.getValue()){
          player.teleport(location);
    }
    Something along those lines...
     
Thread Status:
Not open for further replies.

Share This Page