Package com.booksaw.betterTeams.message
Class StaticMessage
java.lang.Object
com.booksaw.betterTeams.message.StaticComponentHolderMessage
com.booksaw.betterTeams.message.StaticMessage
- All Implemented Interfaces:
ComponentHolderMessage
,Message
This class is used for any messages which should be sent as normal (literally
just a message)
- Author:
- booksaw
-
Field Summary
Fields inherited from class com.booksaw.betterTeams.message.StaticComponentHolderMessage
message
-
Constructor Summary
Constructors -
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
.Methods inherited from class com.booksaw.betterTeams.message.StaticComponentHolderMessage
getMessage
-
Constructor Details
-
StaticMessage
- Parameters:
message
- The message to send to usersprefix
- if the message should include the prefix or not
-
StaticMessage
- Parameters:
message
- The message to send to users
-
-
Method Details
-
sendMessage
public void sendMessage(org.bukkit.command.CommandSender recipient) Description copied from interface:Message
Used to send the message.- Parameters:
recipient
- theCommandSender
to send the message to.
-
sendMessage
Description copied from interface:Message
Used to send the message to aCollection
ofPlayer
s.- 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.- Parameters:
recipient
- thePlayer
to send the title 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.- Parameters:
recipients
- thePlayer
s to send the title to.
-