Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-1901

launchProjectileDoesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None

      Calling player.launchProjectile(Arrow.class) doesn't spawn the arrow anymore.
      I've checked if the entity was valid and if ProjectileLaunchEvent was cancelled.

      Arrow arrow = player.launchProjectile(Arrow.class);
      System.out.println(arrow.isValid()); //Outputs true
      
      @EventHandler(priority = EventPriority.MONITOR)
      public void test(final ProjectileLaunchEvent e) {
      	System.out.println(e.isCancelled());//Outputs false
      }
      

      It worked yesterday (11 March)

            Unassigned Unassigned
            ImAFlyingPancake ImAFlyingPancake
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: