Interface MultiverseMessaging

  • All Known Implementing Classes:
    MVMessaging

    public interface MultiverseMessaging
    Multiverse-messaging.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getCooldown()
      Gets the message-cooldown.
      boolean sendMessage​(org.bukkit.command.CommandSender sender, java.lang.String message, boolean ignoreCooldown)
      Sends a message to the specified sender if the cooldown has passed.
      boolean sendMessages​(org.bukkit.command.CommandSender sender, java.lang.String[] messages, boolean ignoreCooldown)
      Sends a group of messages to the specified sender if the cooldown has passed.
      boolean sendMessages​(org.bukkit.command.CommandSender sender, java.util.Collection<java.lang.String> messages, boolean ignoreCooldown)
      Sends a group of messages to the specified sender if the cooldown has passed.
      void setCooldown​(int milliseconds)
      Sets the message-cooldown.
    • Method Detail

      • setCooldown

        void setCooldown​(int milliseconds)
        Sets the message-cooldown.
        Parameters:
        milliseconds - The new message-cooldown in milliseconds.
      • sendMessage

        boolean sendMessage​(org.bukkit.command.CommandSender sender,
                            java.lang.String message,
                            boolean ignoreCooldown)
        Sends a message to the specified sender if the cooldown has passed.
        Parameters:
        sender - The person/console to send the message to.
        message - The message to send.
        ignoreCooldown - If true this message will always be sent. Useful for things like menus
        Returns:
        true if the message was sent, false if not.
      • sendMessages

        boolean sendMessages​(org.bukkit.command.CommandSender sender,
                             java.lang.String[] messages,
                             boolean ignoreCooldown)
        Sends a group of messages to the specified sender if the cooldown has passed. This method is needed, since sending many messages in quick succession would violate the cooldown.
        Parameters:
        sender - The person/console to send the message to.
        messages - The messages to send.
        ignoreCooldown - If true these messages will always be sent. Useful for things like menus
        Returns:
        true if the message was sent, false if not.
      • sendMessages

        boolean sendMessages​(org.bukkit.command.CommandSender sender,
                             java.util.Collection<java.lang.String> messages,
                             boolean ignoreCooldown)
        Sends a group of messages to the specified sender if the cooldown has passed. This method is needed, since sending many messages in quick succession would violate the cooldown.
        Parameters:
        sender - The person/console to send the message to.
        messages - The messages to send.
        ignoreCooldown - If true these messages will always be sent. Useful for things like menus
        Returns:
        true if the message was sent, false if not.
      • getCooldown

        int getCooldown()
        Gets the message-cooldown.
        Returns:
        The message-cooldown.