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 uservoid
sendMessage
(Collection<? extends org.bukkit.command.CommandSender> senders) Used to send the message to aCollection
ofPlayer
s.void
sendMessage
(org.bukkit.command.CommandSender sender) Used to send the message.void
sendTitle
(Collection<org.bukkit.entity.Player> players) Used to send a title to aCollection
ofPlayer
s.void
sendTitle
(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:Message
Used to send the message.- Specified by:
sendMessage
in interfaceMessage
- Parameters:
sender
- theCommandSender
to send the message to.
-
sendTitle
public void sendTitle(org.bukkit.entity.Player player) Description copied from interface:Message
Used 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:Message
Used to send the message to aCollection
ofPlayer
s.- Specified by:
sendMessage
in interfaceMessage
- Parameters:
senders
- theCommandSender
s to send the message to
-
sendTitle
Description copied from interface:Message
Used to send a title to aCollection
ofPlayer
s.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
-