Cancel PlayerInteractEvent when buying an item #845


  • Enhancment
  • Replied
Open
Assigned to kellerkindt
  • RoboMWM created this issue Feb 13, 2016

    When buying a crackshot weapon from a display shop, if it happens to go in the currently-selected empty slot, it will fire the weapon as well.

  • RoboMWM added the tags New Enhancment Feb 13, 2016
  • kellerkindt posted a comment Feb 14, 2016

    Actually this should already happen. I optimized some things in the method where I am handling the PlayerInteractEvent, but I don't think that is changed the cancel behaviour. If it does, good for you, mysterious to me.
    Whats the name of the plugin that provides the special item?

  • kellerkindt removed a tag New Feb 14, 2016
  • kellerkindt added a tag Waiting Feb 14, 2016
  • RoboMWM posted a comment Feb 14, 2016

    Crackshot, which is not open source unfortunately but idk if it's obfuscated. http://dev.bukkit.org/bukkit-plugins/crackshot/


    Edited Feb 14, 2016
  • RoboMWM removed a tag Waiting Feb 14, 2016
  • RoboMWM added a tag Replied Feb 14, 2016
  • RoboMWM posted a comment Feb 14, 2016

    Hmm, still happening with the latest build. Probably is listening to arm swing event?

  • kellerkindt posted a comment Mar 15, 2016
  • kellerkindt removed a tag Replied Mar 15, 2016
  • kellerkindt added a tag Waiting Mar 15, 2016
  • RoboMWM posted a comment Aug 14, 2016

    This is actually reproducible with just vanilla items as well - e.g. right click to buy a minecart with empty hand = buying the minecart, and then immediately placing it down.

  • RoboMWM posted a comment Aug 14, 2016

    This is actually reproducible with just vanilla items as well - e.g. right click to buy a minecart with empty hand = buying the minecart, and then immediately placing it down.


    Edited Aug 14, 2016
  • RoboMWM posted a comment Aug 14, 2016

    This is actually reproducible with just vanilla items as well - e.g. right click to buy a minecart with empty hand = buying the minecart, and then immediately placing it down.


    Edited Aug 14, 2016
  • RoboMWM posted a comment Aug 14, 2016

    This is actually reproducible with just vanilla items as well - e.g. right click to buy a minecart with empty hand = buying the minecart, and then immediately placing it down.


    Edited Aug 14, 2016
  • RoboMWM removed the tags Waiting Waiting Waiting Waiting Aug 14, 2016
  • RoboMWM added the tags Replied Replied Replied Replied Aug 14, 2016

To post a comment, please login or register a new account.