• Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None

      The EntityDismountEvent doesn't trigger anymore i have used the spigot version i downloaded on the 2015-02-03 (git-Spigot-"c2202d8") and it worked halfe because it trigered when i got off an Bat,Cow... but it didn't trigger when a bat got off me.
      But in the new version i downloaded 2015-02-20 (git-Spigot-ed3e3af-ee8d0fa) the event doesn't trigger when i get off a Bat,Cow,Villager

          [SPIGOT-596] EntityDismountEvent

          Z750 added a comment -

          Z750 added a comment - Fixed and PR submitted. https://hub.spigotmc.org/stash/projects/SPIGOT/repos/spigot/pull-requests/49/overview

          Kege Kiss added a comment -

          Still not fixed in the latest version.

          Kege Kiss added a comment - Still not fixed in the latest version.

          Kege Kiss added a comment -

          Still not fixed as of today with latest version (1.8.3).

          Kege Kiss added a comment - Still not fixed as of today with latest version (1.8.3).

          Daniel added a comment -
          Command.java
          Player p = (Player) sender;
          Entity mob = loc.getWorld().spawnEntity(loc, EntityType.BAT);
          mob.setPassenger(p);
          

          something like that in an command or if you want the entity on your head

          Command.java
          p.setPassenger(mob);
          

          Daniel added a comment - Command.java Player p = (Player) sender; Entity mob = loc.getWorld().spawnEntity(loc, EntityType.BAT); mob.setPassenger(p); something like that in an command or if you want the entity on your head Command.java p.setPassenger(mob);

          md_5 added a comment -

          How am I supposed to mount an entity?

          md_5 added a comment - How am I supposed to mount an entity?

          Kege Kiss added a comment - - edited

          Make a main class that register events of itself and add this function :

          MainClass.java
          @EventHandler
          public void onEntityDismount(EntityDismountEvent event) {
              System.out.println("EntityDismountEvent is called correctly");
              System.out.println("Is EntityDismountEvent cancelled : " + event.isCancelled());
          }
          

          You will see that none of the messages will print, because the event is not called.

          Kege Kiss added a comment - - edited Make a main class that register events of itself and add this function : MainClass.java @EventHandler public void onEntityDismount(EntityDismountEvent event) { System .out.println( "EntityDismountEvent is called correctly" ); System .out.println( "Is EntityDismountEvent cancelled : " + event.isCancelled()); } You will see that none of the messages will print, because the event is not called.

          md_5 added a comment -

          Please provide testing materials.

          md_5 added a comment - Please provide testing materials.

          Kege Kiss added a comment -

          This issue is still not solved.

          Kege Kiss added a comment - This issue is still not solved.

          Daniel added a comment -

          I have now version git-Spigot-6ee12F633d5de3 and it isn't working

          Daniel added a comment - I have now version git-Spigot-6ee12F633d5de3 and it isn't working

          md_5 added a comment -

          Update your spigot, git-Spigot-ed3e3af-ee8d0fa isn't even a version we have released.

          md_5 added a comment - Update your spigot, git-Spigot-ed3e3af-ee8d0fa isn't even a version we have released.

            Assignee:
            md_5
            Reporter:
            Daniel
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: