Solved EntityDeathEvent not working?

Discussion in 'Plugin Development' started by name123321, Jun 19, 2018.

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

    name123321

    Version 1.8
    @EventHandler
    public void onEntityDeath(EntityDeathEvent event){
    event.getDrops().clear();
    }
    I read in lots off threads that this should be working, but it always get marked red and I just get the default suggestion from my program. Does Somebody know if there is an namechange or something that I did wrong?
     
    Last edited: Jun 19, 2018
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    name123321

    Just that the method getDrops() dont exist. I made a new File and it worked there fore any reason.
    It was probably a wierd bug.
    Thx for your help:)
     
Thread Status:
Not open for further replies.

Share This Page