Nether Portal World TP Plugin - (Need Help)

Discussion in 'Plugin Development' started by SpaceFlo, Mar 12, 2016.

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

    SpaceFlo

    Hey,
    I want to program a plugin with which I netherportale through the blocks which can be used under the portals are the portal to another world bring.
    (You can see it on the picture)
    I'm still beginner and wanted to ask if someone can help me.
    I apologize for the English (Google Translate) :)
    I would be very happy about an answer
    Flo

    [​IMG]

    I have done this:
    #
    Code:
    package listeners;
    
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.EventPriority;
    import org.bukkit.event.Listener;
    import org.bukkit.event.player.PlayerPortalEvent;
    
    public class NetherportalEvent implements Listener{
       
        @EventHandler(priority=EventPriority.HIGHEST, ignoreCancelled=true)
          public void onPlayerPortal(PlayerPortalEvent event) {
           
        }
        }
    
     

    Attached Files:

  2. Offline

    mine-care

    Ok, the structure would be:
    1. you store the location of poral 1 and the respective location of portal 2 somehow.
    2. on portal event, you check if this portal is at any of the stored locations, and if it is, you cancel the normal operation of the portal and teleport the user manually.
     
  3. Offline

    SpaceFlo

    Thank you for the answer.
    I have no idea how i can programm this, because im a beginner in bukkit Coding. :(
    But i can't find a nice plugin who can this.

    Flo
     
Thread Status:
Not open for further replies.

Share This Page