Class SpigotMessageSender
java.lang.Object
de.eldoria.eldoutilities.messages.MessageSender
de.eldoria.eldoutilities.messages.impl.SpigotMessageSender
-
Constructor Summary
ConstructorDescriptionSpigotMessageSender
(Plugin plugin, net.kyori.adventure.text.minimessage.MiniMessage miniMessage, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver messageTagResolver, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver errorTagResolver, net.kyori.adventure.text.Component prefix) -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.audience.Audience
asAudience
(Player player) void
void
hideBossBar
(Player player, net.kyori.adventure.bossbar.BossBar bossBar) void
sendActionBar
(Player player, String message, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... placeholder) Send a localized action bar to a playernet.kyori.adventure.bossbar.BossBar
sendBossBar
(Player player, String message, float progress, net.kyori.adventure.bossbar.BossBar.Color color, net.kyori.adventure.bossbar.BossBar.Overlay overlay, Set<net.kyori.adventure.bossbar.BossBar.Flag> flags) void
sendBossBar
(Player player, net.kyori.adventure.bossbar.BossBar bossBar) void
sendErrorActionBar
(Player player, String message, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... placeholder) Send a localized action bar to a playervoid
sendMessage
(CommandSender sender, net.kyori.adventure.text.Component component) void
Send a title to a playerMethods inherited from class de.eldoria.eldoutilities.messages.MessageSender
applyPrefix, builder, errorTagResolver, getPluginMessageSender, getPluginMessageSender, isAnonymous, messageTagResolver, miniMessage, plugin, prefix, register, sendError, sendError, sendMessage, sendMessage, sendTitle, serialize, serializeError, serializeError, serializeMessage, serializeMessage, translatePlain, translatePlain
-
Constructor Details
-
SpigotMessageSender
public SpigotMessageSender(Plugin plugin, net.kyori.adventure.text.minimessage.MiniMessage miniMessage, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver messageTagResolver, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver errorTagResolver, net.kyori.adventure.text.Component prefix)
-
-
Method Details
-
sendMessage
- Specified by:
sendMessage
in classMessageSender
-
broadcast
- Specified by:
broadcast
in classMessageSender
-
sendTitle
Send a title to a player- Specified by:
sendTitle
in classMessageSender
- Parameters:
player
- player to sendtitle
- title to send
-
sendActionBar
public void sendActionBar(Player player, String message, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... placeholder) Send a localized action bar to a player- Specified by:
sendActionBar
in classMessageSender
- Parameters:
player
- player to sendmessage
- message to send
-
sendErrorActionBar
public void sendErrorActionBar(Player player, String message, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... placeholder) Send a localized action bar to a player- Specified by:
sendErrorActionBar
in classMessageSender
- Parameters:
player
- player to sendmessage
- message to send
-
sendBossBar
- Specified by:
sendBossBar
in classMessageSender
-
sendBossBar
public net.kyori.adventure.bossbar.BossBar sendBossBar(Player player, String message, float progress, net.kyori.adventure.bossbar.BossBar.Color color, net.kyori.adventure.bossbar.BossBar.Overlay overlay, Set<net.kyori.adventure.bossbar.BossBar.Flag> flags) - Specified by:
sendBossBar
in classMessageSender
-
hideBossBar
- Specified by:
hideBossBar
in classMessageSender
-
asAudience
- Specified by:
asAudience
in classMessageSender
-