A more efficient way of doing this?

Discussion in 'Plugin Development' started by Shzylo, Oct 9, 2013.

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

    Shzylo

    I want to have the players draw back the bow at least almost all of the way, and I know of no methods for bukkit to detect their bow drawback amount. What I currently do is I have a timer that keeps them from firing a certain amount of time, to in a way stimulate it.

    Is there a way to detect the bow's drawback amount for bukkit?
     
  2. Offline

    chasechocolate

    I think that is done client side, unfortunately.
     
  3. Offline

    xTrollxDudex

    Shzylo
    Time the amount of time passed after PlayerInteractEvent with a bow in the player's hand
     
  4. Offline

    sgavster

  5. Offline

    xTrollxDudex

    sgavster
    Nope. The bow packet is sent C->S, not the other way around.
     
  6. Offline

    chasechocolate

  7. Offline

    xTrollxDudex

  8. Offline

    chasechocolate

    xTrollxDudex ah. But it doesn't have the drawback progress, does it?
     
  9. Offline

    xTrollxDudex

    chasechocolate
    Nope. Which is why it isn't useful:
     
  10. Offline

    calebbfmv

    Simple, just use the math you learned in Algebra, you know, the one where you asked your teacher if you're ever going to use this in real life?
     
    Shzylo and Gater12 like this.
Thread Status:
Not open for further replies.

Share This Page