1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How could I make players spawn to a random position

Discussion in 'Development' started by GageGamesHD, May 21, 2018.

  1. GageGamesHD

    GageGamesHD Creeper

    Messages:
    5
    GitHub:
    gagegameshd
    Hello, I would like some help.


    I need a code that when someone joins the server, they get teleportrd to a random position in that world.
    Could you please tell me what pocketmine.events or whatever I need for it as well?
    Thank you so much!
     
  2. RyanShaw

    RyanShaw Witch

    Messages:
    69
    Events, I'm sure you can figure it out. Also from looking at your github you have a /wild plugin. Just use that same method of tping people as that. I don't really want to give the code as it's quite simple what you're asking :p
     
    xXNiceAssassinlo YT likes this.
  3. GageGamesHD

    GageGamesHD Creeper

    Messages:
    5
    GitHub:
    gagegameshd
    What is the code for on spawn?
     
  4. GageGamesHD

    GageGamesHD Creeper

    Messages:
    5
    GitHub:
    gagegameshd
    Oh im dumb lol thanks
     
    RyanShaw likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.