Development Assistance Team Teleport

Discussion in 'Plugin Help/Development/Requests' started by WingedMLGPro, Apr 10, 2015.

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

    WingedMLGPro

    @Corndogoz hmm, interesting!
    But would that teleport all the Team Members together?
     
  2. Offline

    mine-care

    @Corndogoz Well it is a good idea not to spoonfeed but instead provude the structure and let OP implement it.
     
  3. Offline

    Corndogoz

    ok, that code doesnt teleport the players, you have to put in the code, so for example inside tht loop you would do:
    int x=r.nextInt(1000);
    int y=r.nextInt(1000);
    int z=r.nextInt(1000);
    p.teleport(x, y, z);

    EDIT: i see what you want, dont follow that code, so basicly you have todo:
    int x=r.nextInt(1000);
    int y=r.nextInt(1000);
    int z=r.nextInt(1000); outside of the loop then:
    p.teleport inside the loop, so basicly:
    Code:
    int teamredx=r.nextInt(1000);
    int teamredy=r.nextInt(1000);
    int teamredz=r.nextInt(1000);
    
    for (Player p:teams.getMembers()){
         p.teleport(teamredx, teamredy, teamredz);
    }
    ok, sorry
     
    Last edited by a moderator: Apr 16, 2015
    mine-care likes this.
  4. Offline

    mine-care

Thread Status:
Not open for further replies.

Share This Page