Class PlayerDeathListener

java.lang.Object
me.lokka30.levelledmobs.listeners.PlayerDeathListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class PlayerDeathListener extends Object implements org.bukkit.event.Listener
Listens for when a player dies
Since:
2.6.0
  • Constructor Details

    • PlayerDeathListener

      public PlayerDeathListener(LevelledMobs main)
  • Method Details

    • onPlayerDeath

      public void onPlayerDeath(@NotNull @NotNull org.bukkit.event.entity.PlayerDeathEvent event)
      This listener handles death nametags so we can determine which mob killed it and update the death message accordingly
      Parameters:
      event - PlayerDeathEvent