Module gomint.api

Class PlayerDeathEvent


  • public class PlayerDeathEvent
    extends PlayerEvent
    Version:
    1.0
    Author:
    geNAZt
    • Method Detail

      • getDeathMessage

        public String getDeathMessage()
        Get the death message which will be displayed in chat
        Returns:
        death message, can be null
      • setDeathMessage

        public void setDeathMessage​(String deathMessage)
        Set a new death message
        Parameters:
        deathMessage - which will be used, can be null or empty string to not display anything
      • isDropInventory

        public boolean isDropInventory()
        Should the inventory of the player be dropped?
        Returns:
        true when if will be dropped, false when not
      • setDropInventory

        public void setDropInventory​(boolean dropInventory)
        Set the drop inventory flag
        Parameters:
        dropInventory - false will not drop the inventory, true will drop the inventory