Lobby

Discussion in 'Plugin Development' started by PizzaPixel, Nov 5, 2013.

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

    PizzaPixel

    How would i add a lobby to my plugin like in Survival games.
     
  2. Offline

    maxben34

    What do you mean by lobby?
     
  3. Offline

    PizzaPixel

    Where the player respawns when he dies in the game
     
  4. Offline

    xTrollxDudex

    PizzaPixel
    Add a death listener and teleport them to the predefined lobby in setup or something
     
    JPG2000 likes this.
  5. Offline

    PizzaPixel

    Code please

    And I want it that you can set the spawn point using the worldedit wand

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  6. Offline

    maxben34

    This isn't the plugin request section. If you want it coded, ask for it in that section (get this thread moved there). If you need help coding it, I can help you with that.
     
  7. Offline

    PizzaPixel

    I only need help coding
     
  8. Offline

    maxben34

    Basically what you need to do is have a PlayerRespawnEvent and when they respawn you make a new location object with the coords that you want them to teleport to then you do e.getPlayer.teleport(loc)
     
  9. cant u do like a /setlobby command and get the location of the player and save it and whenever someone does /lobby it teleports the sender there? or no?
     
    PizzaPixel likes this.
  10. Offline

    maxben34

    Why use commands if you can trigger it on respawn?
     
  11. maxben34 u can do it on both i guess xD i was just suggesting i dont know if it would even work
     
  12. Offline

    PizzaPixel

    Thanx
     
Thread Status:
Not open for further replies.

Share This Page