Check if player is in selection

Discussion in 'Plugin Development' started by Roborack17, Aug 13, 2016.

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

    Roborack17

    Hey! I want to make my plugin teleport a player if the player is in a selection which can be done with WorldEdit API i guess. So, I want to make something like a portal and if a player enters that portal, he will be teleported to somewhere else
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Roborack17 Check his location with the lowest x,y,z and highest x,y,z.
    Check if his pos is between those.
     
  3. Offline

    DuaneTheDev_

    @Roborack17

    You can also use getTo() to check if the player entered the bounds.
     
  4. Offline

    Roborack17

    Can you give me an example? Is it like highest X - lowest X?
     
  5. Offline

    timtower Administrator Administrator Moderator

Thread Status:
Not open for further replies.

Share This Page