Infinite Arrows?

Discussion in 'Plugin Development' started by Ethan, Nov 10, 2013.

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

    Ethan

    So I give players 1 arrow:
    Code:java
    1. p.getInventory().addItem(new ItemStack(Material.ARROW, 1));


    But when they fire the arrow out of the bow...the arrow never disappears, it's as if they have an infinite amount of arrows. Why is this and how do I stop it?

    Thanks
     
  2. Offline

    sgavster

    Do they have infinity on the bow?...
     
  3. Offline

    hellboyPS

    Are they in creative mode?
     
  4. Offline

    Ethan

    No, they are not in creative and they have a regular bow (I tested it myself).
     
  5. Offline

    the_merciless

    When do you use that code? Lets see more
     
    MrSnare likes this.
Thread Status:
Not open for further replies.

Share This Page