Class KillMessages

java.lang.Object
de.marcely.bedwars.api.cosmetics.shop.data.KillMessages
All Implemented Interfaces:
ActionData

public abstract class KillMessages extends Object implements ActionData
Data for when kill messages are changed.
See Also:
  • Constructor Details

    • KillMessages

      public KillMessages()
  • Method Details

    • getType

      public ActionDataType<KillMessages> getType()
      Description copied from interface: ActionData
      Returns the type of this action data.
      Specified by:
      getType in interface ActionData
      Returns:
      The type represented by this data
    • getId

      public abstract String getId()
      Returns the unique id of this kill messages as configured.
      Returns:
      The id
    • getMessages

      public abstract List<String> getMessages(KillMessages.Event event)
      Returns the potential messages for the specified event.

      In case there are multiple, a random one is chosen. If the list is instead empty, it will try to use the fallback event's (KillMessages.Event.getFallback()) messages (if any).

      Parameters:
      event - The event to get messages for
      Returns:
      The messages (unmodifiable)