Is it possible to move player crosshair whit bukkit api?

Discussion in 'Bukkit Help' started by kosharik, Aug 9, 2014.

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

    kosharik

    As the title says, is it possible to get players crosshair position (i dont need target entity or block) and move player crosshair? I have seen Essentials to move the crosshair on /spawn command.

    I need this to act as recoil, i have programmed some guns whit the Skript. I didnt find anything in google and im too lazy to scroll thru bukkit docs.
     
  2. kosharik Are you asking whether you can do this with the Bukkit API or with Skript?

    Perfect attitude to have...
     
  3. Offline

    ZanderMan9

    That is an entirely client-side display. The server cannot tell the client to have a different display. You'd have to have a mod that talks to the server, and Bukkit does not support mods. Also, outright saying you are too lazy is really a great way to get help...
    But the simple answer to your question is no.
     
  4. ZanderMan9 I think he's more asking how to make the player 'look' at a certain point (i.e. set their pitch & yaw) rather than change the cross-hair display.
     
  5. Offline

    ZanderMan9

    AdamQpzm In that case, yes it is possible... Not too sure how honestly. Can it be done with a Location? Or do Locations only support x y z?
     
  6. ZanderMan9 Yep, Locations have yaw and pitch.
     
  7. Offline

    ZanderMan9

    Ah. Coolio. Looks like you'll need to create a new Location then...
    Like so:
    Code:java
    1. Location loc = new Location(world, x, y, z, pitch, yaw);
     
  8. Offline

    kosharik

    Thanks!
     
Thread Status:
Not open for further replies.

Share This Page