Discussion in 'Plugin Development' started by MckenzieSkullKid, Feb 16, 2013.
How would I create a smoke particle effect at the players location when they die?
On the death event though i am not able to get the players location
public void onPlayerDeath(PlayerDeathEvent event)
Player player = event.getEntity();
player.getLocation().getWorld().playEffect(player.getLocation(), Effect.SMOKE, 1);
Maybe this works, haven't tested it.
Wolftic . That should work there, but you can also set sounds and other effects as long as it works with the event set.
Separate names with a comma.