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

Shearing Bogged does not fire PlayerShearEntityEvent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • This server is running CraftBukkit version 4251-Spigot-491f367-f672c35 (MC: 1.21) (Implementing API version 1.21-R0.1-SNAPSHOT)
    • Yes

      Bogged is a new mob in 1.21 that is a skeleton with 2 mushrooms on its head. If you shear it, it drops these. The PlayerShearEntityEvent should fire but does not (yet). There was a similar issue with Snowmen a while back. 

      Code to check (just a logger on the registered event):

      public class ShearingListener extends Listener {
          @EventHandler(priority = EventPriority.NORMAL)
          public void onShear(final PlayerShearEntityEvent e) {
              Bukkit.getLogger().info(e.getEventName());
          }
      } 

            Doc Doc
            tastybento tastybento
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: