Dismount

Discussion in 'Plugin Development' started by CraftBang, Dec 10, 2014.

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

    CraftBang

    Hello there everyone,

    I've seen some posts about dismounting but I couldn't find the right information about dismounting on animals.
    I did made a "fix" what it does : you dismount > get put back on.
    But I've seen that Hypixel doesn't have the problem with dismounting (in a minigame you fly with a chicken, shift is down, space is up).
    How do I cancel dismounting completely?

    The mob I'm using is a wolf.

    Thanks in advance,

    CB
     
  2. Offline

    Skionz

    @CraftBang You could try using the PlayerSneakEvent although I am not sure if it is called when you dismount.
     
  3. Offline

    CraftBang

    Mhm I thought I tried that going to try now. I guess you ment PlayerToggleSneakEvent btw.
    Doesn't work :p Thanks for responding though
     
  4. Offline

    mine-care

    CraftBang likes this.
  5. Offline

    CraftBang

    @mine-care I tried that, but a wolf isn't a Vehicle THERE, it is though if you're checking if the player isInVehicle, and than getVehicle(), weird!
     
    mine-care likes this.
  6. Offline

    mine-care

    @CraftBang oh lol! That's what I originally though. Since getVehicle can return wolf then I thought the event will fire too... Ugh...
     
    CraftBang likes this.
  7. Offline

    xTigerRebornx

  8. Offline

    CraftBang

    @mine-care thanks for responding :p
    @xTigerRebornx I do have a custom entity, I'll take a look into NMS, since it's my first time using that :p.
    Thanks!
     
  9. Offline

    ChipDev

    mine-care likes this.
  10. Offline

    mine-care

    @ChipDev Usefull! a like for you =)
     
    ChipDev likes this.
  11. How does one get ninja'd by 6 hours? 0.o
     
  12. Offline

    ChipDev

    Meh, I went to school.
     
  13. @ChipDev Ah. Then maybe next time you leave a page open 1/4 of a day, you'll refresh before posting, eh? :p
     
Thread Status:
Not open for further replies.

Share This Page