Package com.booksaw.betterTeams.message
Class CompositeMessage
java.lang.Object
com.booksaw.betterTeams.message.CompositeMessage
- All Implemented Interfaces:
Message
Used when the program needs to send multiple messages to the user
- Author:
- booksaw
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeMessage
(Message... messages) CompositeMessage
(List<Message> messages) -
Method Summary
Modifier and TypeMethodDescriptionvoid
sendMessage
(Collection<? extends org.bukkit.command.CommandSender> recipients) Used to send the message to aCollection
ofPlayer
s.void
sendMessage
(org.bukkit.command.CommandSender recipient) Used to send the message.void
sendTitle
(Collection<org.bukkit.entity.Player> recipients) Used to send a title to aCollection
ofPlayer
s.void
sendTitle
(org.bukkit.entity.Player recipient) Used to send a title to aPlayer
.
-
Constructor Details
-
CompositeMessage
-
CompositeMessage
-
-
Method Details
-
getMessages
-
sendMessage
public void sendMessage(org.bukkit.command.CommandSender recipient) Description copied from interface:Message
Used to send the message.- Specified by:
sendMessage
in interfaceMessage
- Parameters:
recipient
- theCommandSender
to send the message to.
-
sendMessage
Description copied from interface:Message
Used to send the message to aCollection
ofPlayer
s.- Specified by:
sendMessage
in interfaceMessage
- Parameters:
recipients
- theCommandSender
s to send the message to
-
sendTitle
public void sendTitle(org.bukkit.entity.Player recipient) 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. -
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.
-