getting player's locations

Discussion in 'Plugin Development' started by XxZHALO13Xx, Dec 26, 2014.

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

    XxZHALO13Xx

    I'm making a game where every ten minutes one player gets teleported to a random player. How do i get every players location? and get a random one and tp to them?
     
  2. Offline

    Skionz

    @XxZHALO13Xx Player#getLocation(). To get a random one use the Random class.
     
  3. Offline

    XxZHALO13Xx

    @Skionz but i want all players to be teleported to a random player
     
  4. Offline

    BlazingBroGamer

    @XxZHALO13Xx
    First, get a list of all the players in the server, next choose a random player from the list, then teleport all the other players to that player. Use a bukkit scheduler to time the length in between each teleport.
     
    ChipDev likes this.
Thread Status:
Not open for further replies.

Share This Page