[URGENT] I really need help!

Discussion in 'Plugin Development' started by zDubsCrazy, Apr 16, 2014.

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

    zDubsCrazy

    I need a simple thing, but it seems difficult: When only two players remain in the arena of SurvivalGames, they are teleported to another location, for ending the match in PvP. I have no idea how to do! But I hope someone can guide me! It is very urgent and need.

    Thank you for your attention.
     
  2. Offline

    TheHandfish

    Is the problem with teleporting them?

    Couldn't you do player.teleport()?
     
  3. Offline

    zDubsCrazy

    You are kidding me?

    This we all know, the more I want to know how is the process so that the only 2 players left over, it happened.
     
  4. Offline

    DrEinsteinium

    zDubsCrazy
    Well I'm assuming you have a list of players in your survival games arena... and if not you need one. Whenever a player dies, use the PlayerDeathEvent to remove them from the list. Then have it check to see if the list.size() <= 2, and if so, schedule a method to do the teleporting.
     
Thread Status:
Not open for further replies.

Share This Page