ShowCaseCreateEvent not canceled correctly. #834


  • Defect
  • Waiting
Open
Assigned to kellerkindt
  • _ForgeUser7246870 created this issue May 13, 2015

    What steps will reproduce the problem?
    1. Listen for ShowCaseCreateEvent
    2. Set the event as canceled.

    What is the expected output? What do you see instead?
    The event getting canceled, no case created and the player should get the item back.
    The player doesn't get the item back, and no case is created.

    What SCS version are you using? We don't accept "latest"!
    713

    Do you have an error log of what happened?
    No errors

    Please add the file which you can create with "/scs report" (since b135)
    http://pastebin.com/dx910ST4

  • _ForgeUser7246870 added the tags New Defect May 13, 2015
  • kellerkindt posted a comment Aug 9, 2015

    Hmmm.

    I could only image that this happens, if you also use
    'priority=EventPriority.MONITOR' and your plugin gets
    loaded after ShowCaseStandalone. If so, you need to either
    lower your priority, for example to 'HIGHEST'.

    See also https://github.com/Bukkit/Bukkit/blob/master/src/main/java/org/bukkit/event/EventHandler.java

  • kellerkindt removed a tag New Aug 9, 2015
  • kellerkindt added a tag Waiting Aug 9, 2015

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