I have question How to create portal with command maybe : /portalspawn If player enter him teleport to spawn Size maybe 3x3 Anybody can help ?
Place blocks relative to the player, get when he moves into it (PlayerMoveEvent / WorldGuard region), and then teleport him.
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.
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