Find location to create nether portal

Discussion in 'Plugin Development' started by A15, Apr 13, 2021.

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

    A15

    Hi!
    If I understand correctly there was AgentTravel in the past and now it's removed. I was looking for another method to finding and creating portals between worlds. The only thing I found is this thread with code to finding portals. Now I looking for a way to finding location where portal can be created.

    There is simple way to do it? Or any prepared code?
    Thanks for your help in advance!
     
  2. Offline

    davidclue

    You could save the locations of where your custom portals are and use PlayerPortalEvent to check when a player uses a portal and then use getFrom() to check if the location matches your custom portal, then just teleport the player to your custom world wherever you want.
     
Thread Status:
Not open for further replies.

Share This Page