Package com.booksaw.betterTeams.message
Class ChatMessage
java.lang.Object
com.booksaw.betterTeams.message.StaticComponentHolderMessage
com.booksaw.betterTeams.message.ChatMessage
- All Implemented Interfaces:
ComponentHolderMessage
,Message
-
Field Summary
Fields inherited from class com.booksaw.betterTeams.message.StaticComponentHolderMessage
message
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChatMessage
allyChat
(@NotNull Team team, @NotNull TeamPlayer teamPlayer, @Nullable String prefix, @NotNull String message) static ChatMessage
customSyntaxTeamChat
(@NotNull Team team, @NotNull TeamPlayer teamPlayer, @Nullable String prefix, @NotNull String message, @NotNull String syntax) net.kyori.adventure.text.Component
getTeam()
void
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
sendSpyMessage
(Collection<? extends org.bukkit.command.CommandSender> recipients) void
sendSpyMessage
(org.bukkit.command.CommandSender recipient) 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
.static ChatMessage
teamChat
(@NotNull Team team, @NotNull TeamPlayer teamPlayer, @NotNull String message) static ChatMessage
teamChat
(@NotNull Team team, @NotNull TeamPlayer teamPlayer, @Nullable String prefix, @NotNull String message) Methods inherited from class com.booksaw.betterTeams.message.StaticComponentHolderMessage
getMessage
-
Method Details
-
sendSpyMessage
public void sendSpyMessage(org.bukkit.command.CommandSender recipient) -
sendSpyMessage
-
teamChat
public static ChatMessage teamChat(@NotNull @NotNull Team team, @NotNull @NotNull TeamPlayer teamPlayer, @NotNull @NotNull String message) -
teamChat
public static ChatMessage teamChat(@NotNull @NotNull Team team, @NotNull @NotNull TeamPlayer teamPlayer, @Nullable @Nullable String prefix, @NotNull @NotNull String message) -
allyChat
public static ChatMessage allyChat(@NotNull @NotNull Team team, @NotNull @NotNull TeamPlayer teamPlayer, @Nullable @Nullable String prefix, @NotNull @NotNull String message) -
customSyntaxTeamChat
public static ChatMessage customSyntaxTeamChat(@NotNull @NotNull Team team, @NotNull @NotNull TeamPlayer teamPlayer, @Nullable @Nullable String prefix, @NotNull @NotNull String message, @NotNull @NotNull String syntax) -
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.
-
getTeam
-
getTeamPlayer
-
getSpyMessage
public net.kyori.adventure.text.Component getSpyMessage()
-