Solved Teleporting after a player dies?

Discussion in 'Plugin Development' started by CarPet, Oct 21, 2012.

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

    CarPet

    I am looking to teleport players to a set location when they die, would I use onPlayerDeath or onPlayerRespawn?

    If possible could you please paste your code?

    Thanks!
     
  2. Offline

    ZeusAllMighty11

    onPlayerRespawn because player death takes place before they respawn.
     
  3. Offline

    NinjaW0lf

    onPlayerRespawn

    Code:
    event.setRespawnLocation
    
    EDIT: Dammit, im a ninja and i got ninja'ed :'([cake]
     
  4. Offline

    calebbfmv

    PlayerRespawnEvent
     
  5. Offline

    Courier

    hawkfalcon likes this.
  6. Offline

    TnT

    Offtopic and... weird... posts removed. Locked - answer has been given.
     
Thread Status:
Not open for further replies.

Share This Page