1.15.2 PlayerDropItemEvent has a problem with the give command

Discussion in 'Spigot Plugin Development' started by vy_vu, Mar 7, 2020.

  1. sorry i'm noob and my english is very bad
    i'm having a problem with PlayerDropItemEvent, this causes the give (/ give) command to work wrong, /give command gave me 2 items, and it releases PlayerDropItemEvent


    #1 vy_vu, Mar 7, 2020
    Last edited: Mar 8, 2020
  2. Could you please also provide your
    Code (Text):
    method? And did you check if reading out the boolean from the configuration works correctly?
  3. everything worked correctly, i provided a test video, may not even need to check the condition, just e.setcancelled(true)
    #3 vy_vu, Mar 7, 2020
    Last edited: Mar 7, 2020
  4. anyone can help? another solution?
  5. The event shouldn't even be called on give command, maybe that's a bug?
  6. #6 vy_vu, Mar 8, 2020
    Last edited: Mar 8, 2020