Checking to see if a player is staring at another player?

Discussion in 'Plugin Development' started by gabrielmaennl555, Jan 30, 2016.

Thread Status:
Not open for further replies.
  1. EDIT: Also, does anyone know how I could check if a player is staring at another player?
     
    Last edited: Jan 30, 2016
  2. Offline

    Go Hard

    There is no way to detect what kind of client that player is using. Hackers will be hackers.
     
  3. Offline

    darthteddy1

    Well, a thing I have been noticing is that you can make invisible entities, and check if a player constantly targets them (for KillAura). To answer your question, there is no way to tell if the client is modified without them actually hacking.
     
  4. @darthteddy1 Okay, Ill play around with that.

    Also, does anyone know how I could check if a player is staring at another player?
     
  5. Offline

    Coopah

    @gabrielmaennl555
    Try player.getEyeLocation(); and compare it to the target player's location. You'll have to do something by getting nearby players and getting the distance between the two then add it to the eye location.
     
    Last edited: Jan 30, 2016
Thread Status:
Not open for further replies.

Share This Page