Create portal

Discussion in 'Plugin Development' started by Plugers11, Apr 19, 2014.

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

    Plugers11

    I have question
    How to create portal
    with command maybe : /portalspawn
    If player enter him teleport to spawn
    Size maybe 3x3
    Anybody can help ?
     
  2. Offline

    TheMcScavenger

    Place blocks relative to the player, get when he moves into it (PlayerMoveEvent / WorldGuard region), and then teleport him.
     
  3. Offline

    Plugers11

    Can u put code or explain this ?
    I want to create portal with command

    Anybody can help ?

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

    Konkz

    Depends how you want to do it.
    I can give you two of the many options:
    a) Hard Way - make your own selection which saves in config which is squared (so like world edit selection) and then on player move event check it they have entered that square then execute a teleportation sequence.
    b) Easiest way - Hook to World Guard, make region, listen if they enter region and just teleport them.

    If you want me to explain to you b) then I'm sorry but you should give up coding as you did not even attempt to google - I for instance know Pogostick29dev made a video on it and also World Guard API has nice event explanation.

    But, because I'm feeling nice I will help you with your research: www.google.com
     
  5. Offline

    Plugers11

    Konkz
    Thx i was seeing this videos
     
Thread Status:
Not open for further replies.

Share This Page