Class MessageHelper
java.lang.Object
me.gigawartrex.smalladditions.helpers.MessageHelper
Class for sending messages to entities on the server or interacting with it.
- Author:
- Paul Ferlitz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod to send a plain message to all available recipients.voidMethod to send a colored message to all available recipients.voidsendAllPlayers(String msg) Method to send a plain message to all online player.voidsendAllPlayers(String msg, org.bukkit.ChatColor msgColor) Method to send a colored message to all online player.voidsendConsole(String msg) Method to send a plain message to the console.voidsendConsole(String msg, org.bukkit.ChatColor msgColor) Method to send a colored message to the console.voidsendPlayer(org.bukkit.entity.Player player, String msg) Method to send a plain message to a player.voidsendPlayer(org.bukkit.entity.Player player, String msg, org.bukkit.ChatColor msgColor) Method to send a colored message to a player.
-
Constructor Details
-
MessageHelper
public MessageHelper()Class constructor
-
-
Method Details
-
sendConsole
Method to send a colored message to the console.- Parameters:
msg- the messageStringto be sentmsgColor- theChatColorof the message sent
-
sendConsole
Method to send a plain message to the console.ChatColordefaults toChatColor.WHITE- Parameters:
msg- the messageStringto be sent- See Also:
-
sendPlayer
Method to send a colored message to a player.- Parameters:
player- the targetPlayermsg- theStringto be sentmsgColor- theChatColorof the message sent
-
sendPlayer
Method to send a plain message to a player.ChatColordefaults toChatColor.WHITE- Parameters:
player- the targetPlayermsg- theStringto be sent- See Also:
-
sendAllPlayers
Method to send a colored message to all online player.- Parameters:
msg- theStringto be sentmsgColor- theChatColorof the message sent
-
sendAllPlayers
Method to send a plain message to all online player.ChatColordefaults toChatColor.WHITE.- Parameters:
msg- theStringto be sent- See Also:
-
sendAll
Method to send a colored message to all available recipients. UsessendConsole(String, ChatColor)andsendAllPlayers(String, ChatColor).- Parameters:
msg- theStringto be sentmsgColor- theChatColorof the message sent
-
sendAll
Method to send a plain message to all available recipients.ChatColordefaults toChatColor.WHITE.- Parameters:
msg- TheStringto be sent.- See Also:
-