Package wbs.utils.util.plugin
Class WbsMessageBuilder
java.lang.Object
wbs.utils.util.plugin.WbsMessageBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddClickCommand(String command) addClickCommandSuggestion(String command) addHoverText(String string) addHoverText(net.md_5.bungee.api.chat.hover.content.Text text) addHoverTextRaw(String string) append(net.md_5.bungee.api.chat.TextComponent text) build()onClick(net.md_5.bungee.api.chat.ClickEvent onClick) onHover(net.md_5.bungee.api.chat.HoverEvent onHover) prepend(net.md_5.bungee.api.chat.TextComponent text) prependRaw(String string) send(Collection<? extends org.bukkit.command.CommandSender> receivers) final <T extends org.bukkit.command.CommandSender>
WbsMessagesend(T... receivers) setColour(net.md_5.bungee.api.ChatColor colour) setFormatting(String legacyFormatting) Set the formatting of the most recently added component to the formatting that would be created from the legacy text provided, taking into account custom plugin codes.
-
Constructor Details
-
WbsMessageBuilder
-
-
Method Details
-
append
-
appendRaw
-
append
-
prepend
-
prependRaw
-
prepend
-
onHover
-
addHoverText
-
addHoverTextRaw
-
addHoverText
-
onClick
-
addClickCommand
-
addClickCommandSuggestion
-
setFormatting
Set the formatting of the most recently added component to the formatting that would be created from the legacy text provided, taking into account custom plugin codes.- Parameters:
legacyFormatting- Legacy formatting text, such as "&1" for blue or "&o" for italics.
-
setColour
-
build
-
send
@SafeVarargs public final <T extends org.bukkit.command.CommandSender> WbsMessage send(T... receivers) -
send
-
broadcast
-