Need help with spawns

Discussion in 'Plugin Development' started by aPandaification, Jun 23, 2012.

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

    aPandaification

    So I'm trying to make a minigame sort of thing like mob arena but I don't know how to have two different teams spawn in two different places only when they are in the arena or whatever.
    For example /arena join
    it puts them in a spawn area and they choose teams(this part is easy)
    then it teleports them to their respective spawns this is the part where I don't know how to do it. Any help is greatly appreciated
     
  2. Offline

    evilmidget38 Retired Staff

    Location teamaspawn;
    Location teambspawn;

    for (Player player : teama){
    player.teleport(teamaspawn);
    }
    for (Player player : teamb){
    player.teleport(teambspawn);
    }
     
  3. Offline

    aPandaification

    Okay and on death would it send them back automatically or would I have to make an on death spawn method
     
  4. Offline

    r0306

Thread Status:
Not open for further replies.

Share This Page