Class Messenger
java.lang.Object
preponderous.ponder.minecraft.bukkit.tools.Messenger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sendAllPlayersOnServerMessage(String message)
Method to message every online player.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.
-
Constructor Details
-
Messenger
public Messenger()
-
-
Method Details
-
sendAllPlayersOnServerMessage
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.
-