Class PlayerDeathEvent

java.lang.Object
fr.fidorial.event.entity.EntityDeathEvent
fr.fidorial.event.player.PlayerDeathEvent
All Implemented Interfaces:
Event

public final class PlayerDeathEvent extends EntityDeathEvent
Since:
0.1.0
  • Constructor Details

  • Method Details

    • deathMessage

      public @Nullable Component deathMessage()
      Returns:
      the message broadcast to the server, or null if the death stays silent
    • setDeathMessage

      public void setDeathMessage(@Nullable Component deathMessage)
      Parameters:
      deathMessage - the message to broadcast instead, or null to broadcast nothing