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 TypeMethodDescriptionvoid
Method to send a plain message to all available recipients.void
Method to send a colored message to all available recipients.void
sendAllPlayers
(String msg) Method to send a plain message to all online player.void
sendAllPlayers
(String msg, org.bukkit.ChatColor msgColor) Method to send a colored message to all online player.void
sendConsole
(String msg) Method to send a plain message to the console.void
sendConsole
(String msg, org.bukkit.ChatColor msgColor) Method to send a colored message to the console.void
sendPlayer
(org.bukkit.entity.Player player, String msg) Method to send a plain message to a player.void
sendPlayer
(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 messageString
to be sentmsgColor
- theChatColor
of the message sent
-
sendConsole
Method to send a plain message to the console.ChatColor
defaults toChatColor.WHITE
- Parameters:
msg
- the messageString
to be sent- See Also:
-
sendPlayer
Method to send a colored message to a player.- Parameters:
player
- the targetPlayer
msg
- theString
to be sentmsgColor
- theChatColor
of the message sent
-
sendPlayer
Method to send a plain message to a player.ChatColor
defaults toChatColor.WHITE
- Parameters:
player
- the targetPlayer
msg
- theString
to be sent- See Also:
-
sendAllPlayers
Method to send a colored message to all online player.- Parameters:
msg
- theString
to be sentmsgColor
- theChatColor
of the message sent
-
sendAllPlayers
Method to send a plain message to all online player.ChatColor
defaults toChatColor.WHITE
.- Parameters:
msg
- theString
to be sent- See Also:
-
sendAll
Method to send a colored message to all available recipients. UsessendConsole(String, ChatColor)
andsendAllPlayers(String, ChatColor)
.- Parameters:
msg
- theString
to be sentmsgColor
- theChatColor
of the message sent
-
sendAll
Method to send a plain message to all available recipients.ChatColor
defaults toChatColor.WHITE
.- Parameters:
msg
- TheString
to be sent.- See Also:
-