Interface Message


  • public interface Message
    • Method Detail

      • set

        void set​(List<String> messages)
        Sets the list of messages;
        Parameters:
        messages - the list of messages.
      • get

        List<String> get()
        Returns the list of messages;
        Returns:
        the list of messages.
      • get

        List<String> get​(org.bukkit.entity.Player player,
                         Object... objects)
        Returns the list of messages formatted for the player.
        Parameters:
        player - The player to format the message for.
        objects - List of objects that may be passed.
        Returns:
        the list of messages.
      • add

        boolean add​(String message)
        Adds a string to the message.
        Parameters:
        message - The message string to add.
        Returns:
        true if the message is appended.
      • remove

        boolean remove​(String message)
        Removes a string from the message.
        Parameters:
        message - The message string to remove.
        Returns:
        true if the message is removed.
      • remove

        String remove​(int index)
      • run

        boolean run​(org.bukkit.entity.Player player,
                    Object... objects)
        Runs the message for the given player.
        Parameters:
        player - the player who receives the message
        objects - pass the objects to format.
        Returns:
        true if the player received a message.
      • serialize

        String serialize()