Player Cursor help

Discussion in 'Plugin Development' started by xxCoderForLifexx, Jun 30, 2015.

Thread Status:
Not open for further replies.
  1. So I am trying to get a player to wave at another player like if they are looking at them.
    Kinda like "Coderforlife waved at Notch" but happen only when the player left clicks.
    I'm having trouble finding a way to make sure that what the player is looking is indeed a player as well
    The only cursor related method I can find it "player.getItemOnCursor" which doesn't work because players are not items. Any suggestions?
     
  2. Offline

    thewalkingplay

    left click? you can do a EntityDamageByEntity event, check if the entityes are players and cancel the event

    sorry for my english, I'm brazilian
     
  3. Thanks I'll give it a shot!
     
Thread Status:
Not open for further replies.

Share This Page