Package com.velocitypowered.api.command
Interface CommandSource
- All Superinterfaces:
Audience
,PermissionSubject
,Pointered
- All Known Subinterfaces:
ConsoleCommandSource
,Player
Represents something that can be used to run a
Command
.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
sendPlainMessage
(@NotNull String message) Sends a plain message to this source.default void
sendRichMessage
(@NotNull String message) Sends a message with the MiniMessage format to this source.default void
sendRichMessage
(@NotNull String message, @NotNull TagResolver @NotNull ... resolvers) Sends a message with the MiniMessage format to this source.Methods inherited from interface net.kyori.adventure.audience.Audience
clearResourcePacks, clearTitle, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, sendTitlePart, showBossBar, showTitle, stopSound, stopSound
Methods inherited from interface com.velocitypowered.api.permission.PermissionSubject
getPermissionChecker, getPermissionValue, hasPermission
Methods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointers
-
Method Details
-
sendRichMessage
Sends a message with the MiniMessage format to this source.- Parameters:
message
- MiniMessage content- See Also:
-
- MiniMessage docs for more information on the format.
-
sendRichMessage
default void sendRichMessage(@NotNull @NotNull String message, @NotNull @NotNull TagResolver @NotNull ... resolvers) Sends a message with the MiniMessage format to this source.- Parameters:
message
- MiniMessage contentresolvers
- resolvers to use- See Also:
-
- MiniMessage docs and MiniMessage Placeholders docs for more information on the format.
-
sendPlainMessage
Sends a plain message to this source.- Parameters:
message
- plain message- API Note:
- This method will not apply any form of parse to the text provided, however, it is recommended not to use legacy color codes as this is a deprecated format and not recommended.
-