java.lang.Object
preponderous.ponder.minecraft.bukkit.tools.Messenger

public class Messenger extends Object
  • Constructor Details

    • Messenger

      public Messenger()
  • Method Details

    • sendAllPlayersOnServerMessage

      public void sendAllPlayersOnServerMessage(String message)
      Method to message every online player.
      Parameters:
      message - The message to send.
    • sendMessageToPlayersWithinDistance

      public int sendMessageToPlayersWithinDistance(org.bukkit.entity.Player player, String message, int distance)
      Method to send a message to players within a certain number of blocks from a player.
      Parameters:
      player - The player that sent the message.
      message - The message to send.
      distance - The distance that any other players need to be within in order to receive the message.
      Returns:
      The number of players who received the message.