Package com.booksaw.betterTeams.message
Class ReferencedFormatMessage
java.lang.Object
com.booksaw.betterTeams.message.ReferencedFormatMessage
- All Implemented Interfaces:
Message
Used when sending a message to the user which has a fixed format and is
loaded from messages.yml
- Author:
- booksaw
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsendMessage(Collection<? extends org.bukkit.command.CommandSender> recipients) Used to send the message to aCollectionofPlayers.voidsendMessage(org.bukkit.command.CommandSender recipient) Used to send the message.voidsendTitle(Collection<org.bukkit.entity.Player> recipients) Used to send a title to aCollectionofPlayers.voidsendTitle(org.bukkit.entity.Player recipient) Used to send a title to aPlayer.
-
Constructor Details
-
ReferencedFormatMessage
- Parameters:
reference- the messages.yml reference for the commandreplacements- all replacements that need to be made to the message
-
-
Method Details
-
sendMessage
public void sendMessage(org.bukkit.command.CommandSender recipient) Description copied from interface:MessageUsed to send the message.- Specified by:
sendMessagein interfaceMessage- Parameters:
recipient- theCommandSenderto send the message to.
-
sendTitle
public void sendTitle(org.bukkit.entity.Player recipient) 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:
recipients- 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.
-