Locations

Discussion in 'Plugin Development' started by CactusComboPvP, Jan 4, 2015.

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

    CactusComboPvP

    I want to make a plugin when a player enters a portal, it does a function.
    How do I do that? Like when they enter in between the walls of the obsidian, they will be teleported.
     
  2. PlayerMoveEvent
    Check if e.getFrom() != e.getTo()
    Check if the block at the players location is portal
     
  3. Offline

    MisterErwin

    @CactusComboPvP Do you mean a vanilla portal (e.g. the Nether Portal) - there is an event for that (PlayerPortalEvent)

    If you mean custom portals: You have to check the surrounding of the player.
     
  4. Offline

    CactusComboPvP

  5. Offline

    SuperOriginal

     
Thread Status:
Not open for further replies.

Share This Page