Package com.booksaw.betterTeams.message
Class HelpMessage
java.lang.Object
com.booksaw.betterTeams.message.HelpMessage
- All Implemented Interfaces:
Message
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateHelpMessage(String label, String commandPath, String description) Used to create a formatted help message to explain what a command does to the uservoidsendMessage(Collection<? extends org.bukkit.command.CommandSender> senders) Used to send the message to aCollectionofPlayers.voidsendMessage(org.bukkit.command.CommandSender sender) Used to send the message.voidsendTitle(Collection<org.bukkit.entity.Player> players) Used to send a title to aCollectionofPlayers.voidsendTitle(org.bukkit.entity.Player player) Used to send a title to aPlayer.
-
Constructor Details
-
HelpMessage
-
-
Method Details
-
sendMessage
public void sendMessage(org.bukkit.command.CommandSender sender) Description copied from interface:MessageUsed to send the message.- Specified by:
sendMessagein interfaceMessage- Parameters:
sender- theCommandSenderto send the message to.
-
sendTitle
public void sendTitle(org.bukkit.entity.Player player) Description copied from interface:MessageUsed to send a title to aPlayer.A 'title' is a big text, centered on the recipient screen. It fades in and out and is only shortly visible.
This message is not logged in the chat. if you need this, use
Message.sendMessage(CommandSender)instead. -
sendMessage
Description copied from interface:MessageUsed to send the message to aCollectionofPlayers.- Specified by:
sendMessagein interfaceMessage- Parameters:
senders- theCommandSenders to send the message to
-
sendTitle
Description copied from interface:MessageUsed to send a title to aCollectionofPlayers.A 'title' is a big text, centered on the recipient screen. It fades in and out and is only shortly visible.
This message is not logged in the chat. if you need this, use
Message.sendMessage(Collection)instead. -
createHelpMessage
Used to create a formatted help message to explain what a command does to the user- Parameters:
label- the base commandcommandPath- the rest of the command (i.e. help [param])description- the description of the command- Returns:
- the created message relating to that command
-