Solved [HELP] PlayerDeathEvent not working.

Discussion in 'Spigot Plugin Development' started by Livaco, Apr 25, 2017.

  1. I'm not too sure why, but that method doesn't work for me sometimes, so I use this. Does it work for you?
    Code (Text):
    @EventHandler
        public void onPlayerDeath(PlayerDeathEvent event) {
                    Entity e = event.getEntity();
                    if(e instanceof Player) {
                            // your code
                    }
        }
    }
     
  2. Yeah the code i posted works fine, what IDE do you use to export, it might be the way it exports (i use eclipse)
     
  3. Eclipse, and it's not that. If anything, it would be due to whatever Spigot version I've written the plugin in being incompatible with a server. :p
     
  4. Lol, too lazy to use BuildTools agein?
     
    • Like Like x 1